GetUnitState
- Parameters
-
whichUnit unit
whichUnitState 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
.- return type
real
- Source code
constant native GetUnitState takes unit whichUnit, unitstate whichUnitState returns real
- Source
- unit.j
- wc3modding.com
- GetUnitState