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.

patch

1.00

return type
real
Source code
constant native GetUnitState        takes unit whichUnit, unitstate whichUnitState returns real
Source
common.j
wc3modding.com
GetUnitState