Jump to content
Sign in to follow this  
nullsystems

createTrigger is not repeating...

Recommended Posts

Hi all,

Seem to be having a little trouble with the following trigger creation:

   trg = createTrigger["EmptyDetector",getPos _projectile]; 
trg setTriggerArea[10,10,0,false];
trg setTriggerActivation["ANY", "PRESENT", true];
trg setTriggerStatements["this", "{hint "hi";} foreach thislist" , ""]; 

Now, this works fine. It says "hi" for everyone in the trigger.

But if someone NEW walks into the trigger, nothing happens.

Whats going on here?

Thanks in advance!

Share this post


Link to post
Share on other sites

Since someone is already in the area, its active. You cant reactive something thats already active. Units need to leave it before it can deactive, and then activated again.

That's why theres alot of "thislist" and "list trgName" stuff used. ;)

Share this post


Link to post
Share on other sites

Makes sense ;)

Im going to use a nearestobject system instead, much more flexable...thank you !

Edited by nullsystems

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×