SetUnitState
- Parameters
-
whichUnit unit
whichUnitState unitstate
newVal real
- comment
-
Set unit's unit state to a new absolute value.
Example: Set unit's max mana to 105 MP.
call SetUnitState(myUnit, UNIT_STATE_MAX_MANA, 105.0)
- note
-
See:
GetUnitState
. - patch
-
1.00
- Source
- common.j (suggest an edit or discuss on Github)
- return type
-
nothing
- Source code
-
native SetUnitState takes unit whichUnit, unitstate whichUnitState, real newVal returns nothing