Page 1 of 1

Activation Event QUESTION :D

PostPosted: Tue Nov 08, 2011 2:47 am
by micolord
How does it work?

Re: Activation Event QUESTION :D

PostPosted: Tue Nov 08, 2011 3:13 am
by skydereign
It's pretty straight forward. You send essentially activate an event on a given actor. For instance, somewhere in an event script, you have this code.
Code: Select all
SendActivationEvent("actorname.1");

It sends an event to the clone, actorname.1. The event takes place while the current script gets paused. When it finishes, it jumps back to the script and finishes it. The actorname actor though needs to have an event tied to the activation.

Re: Activation Event QUESTION :D

PostPosted: Tue Nov 08, 2011 4:39 am
by micolord
Thanks :D

Re: Activation Event QUESTION :D

PostPosted: Wed Nov 09, 2011 11:44 am
by foleyjo
skydereign wrote:It sends an event to the clone, actorname.1. The event takes place while the current script gets paused. When it finishes, it jumps back to the script and finishes it. The actorname actor though needs to have an event tied to the activation.


Ahh I didn't know that it paused the current script. So it's like a function call. That new bit of information has just helped me find the best way of doing something I've been trying to do with timers.

Re: Activation Event QUESTION :D

PostPosted: Wed Nov 09, 2011 10:59 pm
by skydereign
Yeah, same thing happens with CreateActor. It is an extremely useful event, as you can break it up into many different events.