ConvertUnitState
- Parameters
-
i integer
The integer representation of the unitstate.
- comment
-
Returns unitstate, first index is 0.
It is used to define the constants representing unit state. Accepts any integer, the unitstate reference is always the same for a given integer.
Example:
constant unitstate UNIT_STATE_MAX_MANA = ConvertUnitState(3)
- note
-
See:
GetUnitState
,SetUnitState
. - pure
- This function is pure. For the same values passed to it, it will always return the same value.
- patch
-
1.00
- Source
- common.j (suggest an edit or discuss on Github)
- return type
-
unitstate
- Source code
-
constant native ConvertUnitState takes integer i returns unitstate