Fetzen 10 Posted June 1, 2015 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
killzone_kid 1333 Posted June 1, 2015 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
Fetzen 10 Posted June 1, 2015 (edited) 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 June 1, 2015 by Fetzen Share this post Link to post Share on other sites
killzone_kid 1333 Posted June 1, 2015 unblock would already exist and it will block the trigger when false Share this post Link to post Share on other sites