All of the Units in the Group being dead or devoured?

Status
Not open for further replies.
Level 9
Joined
Apr 15, 2022
Messages
72
I'm making an arena type of level, where you play as orcs. Devoured units don't count as dead, so if you use the "All of the Units in the Unit Group are dead" condition you have to either wait for the Kodo Beast to drain the entire unit or kill your Kodo Beast and then finish off the devoured unit yourself. I used to be able to work around this, but I don't remember how I did this and you likely already have a solution ready. Help me, pretty please? :)
 

Uncle

Warcraft Moderator
Level 71
Joined
Aug 10, 2018
Messages
7,634
You could loop over the Unit Group and check the individual status of these units yourself.

Set Variable AllUnitsAreDead = True
Pick every unit in your Unit Group and do:
If (Picked unit) is alive then Set Variable AllUnitsAreDead = false

After that loop prcoess your AllUnitsAreDead boolean will be either true or false.
 
Status
Not open for further replies.
Top