Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
Fetzen

block trigger until spawned unit dies

Recommended Posts

I have a trigger that spawns a group through a script, under certain conditions.

i want the trigger to be blocked until that group is dead.

i thought it would be straight forward using a "waituntil{!alive leader group}" kind of thing to the trigger onact oder deact fields but none of that works.

something very similar has been described here, but i dont get it going....

http://forums.bistudio.com/showthread.php?102398-Detecting-when-a-spawned-unit-is-dead

any ideas? trigger should remain useless until a previously spawned group is dead.....

Share this post


Link to post
Share on other sites

Add unblock variable

unblock = false;

statement: this && unblock

when you need to unblock trigger

unblock = true;

Share this post


Link to post
Share on other sites

i already tried the condition:"this && !alive leader mygroup;" and a few similar constructs. i think the problem might be that this unit does not exist when the trigger fires for the first time? i tried to put "waituntil{!alive leader mygroup};" in the onact field after the spawn and thought it would make the trigger remain active until the group dies... also no success.

Edited by Fetzen

Share this post


Link to post
Share on other sites
Sign in to follow this  

×