There is a Unit in Region Matching Condition, that retuns a group will all the units, for example that are Nydus in all the map.
Unfortunately you can't compare it to the Empty Group, but you do a For Each Unit In Group Unit, and use a Counter variable or a boolean to check if there is any.
I am trying to do a periodic check to see if there are any units of a given type on a map. Is there a way I can check for say any zerglings on a map?
Ultimately I want to stop spawning units if all nydus worms on the map are destroyed. Any thoughts?
Thanks,
_____ The devil's in the detail
There is a Unit in Region Matching Condition, that retuns a group will all the units, for example that are Nydus in all the map.
Unfortunately you can't compare it to the Empty Group, but you do a For Each Unit In Group Unit, and use a Counter variable or a boolean to check if there is any.
@fr0d0b0ls0n: Go To add to this, there is a "Number of units alive in Unit Group" function, so you can do something like
Condition: Number of living units in (Nydus Worms owned by Any Player in Entire Map matching Any Filter) == 0