• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[General] What happens when unit in unit group dies?

Status
Not open for further replies.
I have some unit variables that refer to newly generated units. these unit variables are in unit groups. What happens when one unit die? Is this unit removed from the unit group? Because I use AI from the resource and it works on every unit inside this group? And I use multiboard that checks their % of HP, if 0 then text=dead. Because When I restart the game without re-checking the groups the AI does not run and their % HP is Dead.
 
Level 12
Joined
Feb 22, 2010
Messages
1,115
I will only speak for normal circumstances where no bug happened(troll brain will talk about ghost units)

Death units are removed from unit group NOT after they dead, but AFTER they are completely removed from game(their corprse disappeared).This is because a death unit still can comeback to life in w3, if you want to remove dead units from a group you need to that yourself.
 
Status
Not open for further replies.
Top