- Joined
- Oct 11, 2012
- Messages
- 711
Hi guys. What is the best way to detect whether a unit is dead or not?
What are the advantages and disadvantages of the above methods? Thanks.
JASS:
native UnitAlive takes unit returns boolean
JASS:
GetUnitState(whichUnit, UNIT_STATE_LIFE) <= 0.405
JASS:
IsUnitType(u,UNIT_TYPE_DEAD)
What are the advantages and disadvantages of the above methods? Thanks.