GetUnitState
- Parameters
whichUnit unitwhichUnitState unitstate- comment
Returns unit's current unit state as an absolute value.
Example: Retrieve a unit's current/max HP and mana:
call GetUnitState(myUnit, UNIT_STATE_MAX_MANA) // returns 285.0- note
See:
SetUnitState.- patch
1.00
- Source
- common.j (suggest an edit or discuss on Github)
- return type
real- Source code
constant native GetUnitState takes unit whichUnit, unitstate whichUnitState returns real