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