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

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