• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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

Status
Not open for further replies.
Level 9
Joined
Apr 15, 2022
Messages
61
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 64
Joined
Aug 10, 2018
Messages
6,543
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