Activation Event QUESTION :D

Non-platform specific questions.

Activation Event QUESTION :D

Postby micolord » Tue Nov 08, 2011 2:47 am

How does it work?
I suck so bad.
micolord
 
Posts: 21
Joined: Sun Nov 06, 2011 7:29 am
Location: Philippines
Score: 0 Give a positive score

Re: Activation Event QUESTION :D

Postby skydereign » Tue Nov 08, 2011 3:13 am

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.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Activation Event QUESTION :D

Postby micolord » Tue Nov 08, 2011 4:39 am

Thanks :D
I suck so bad.
micolord
 
Posts: 21
Joined: Sun Nov 06, 2011 7:29 am
Location: Philippines
Score: 0 Give a positive score

Re: Activation Event QUESTION :D

Postby foleyjo » Wed Nov 09, 2011 11:44 am

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.
KISS -Keep It Simple Stoopid
foleyjo
 
Posts: 275
Joined: Mon Jul 09, 2007 1:15 pm
Score: 15 Give a positive score

Re: Activation Event QUESTION :D

Postby skydereign » Wed Nov 09, 2011 10:59 pm

Yeah, same thing happens with CreateActor. It is an extremely useful event, as you can break it up into many different events.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest