UnitAlive
- Parameters
id unit- comment
Returns true if a unit is alive. Returns false if dead or handle is null.
- note
Internally, this checks unit's isDead flag (256 or 0x100) instead of health.
- common.ai native
- To use this native you have to declare it in your script.
- patch
1.00
- Source
- common.ai (suggest an edit or discuss on Github)
- return type
boolean- Source code
native UnitAlive takes unit id returns boolean