- Joined
- Jul 6, 2009
- Messages
- 1,885
I wondered what's the best way of detecting if a unit is dead.
I know 3 ways,but for each of them,someone says it isn't a valid way of doing it
Can someone tell me which way should be used? Arguments are welcome.
I know 3 ways,but for each of them,someone says it isn't a valid way of doing it
JASS:
1) IsUnitType(unit,UNIT_TYPE_DEAD) == true
2) GetUnitState(unit,UNIT_STATE_LIFE) <= 0
3) GetWidgetLife(unit) < 0.405