If the unit dies, then it doesn't exist, and then it isn't in the group. At least, I think that's how it's working. :P
Rather, maybe you should see if the Unit Group is empty?
unitgroup_variable==(Emptyunitgroup)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I'm trying to create a map where the player wins when they've killed all the zerg cocoons. I also created a unit group called eggs.
How should I created a trigger that checks if a group is empty?
Also another question, I created this trigger,
event: when any unit dies
condition: ((triggering unit is in eggs)) == true
then do some action.
This doesn't work. why doesn't: "((triggering unit is in eggs)) == true" sem to work? And how can I create a condition that is just an if statement?
If the unit dies, then it doesn't exist, and then it isn't in the group. At least, I think that's how it's working. :P
Rather, maybe you should see if the Unit Group is empty?