SetWidgetLife
- Parameters
whichWidget widgettarget widget.
newLife realset health points to this amount.
- comment
Sets target's health points.
It is limited by target's maximum health points. A value of ≤0 kills the target.
- note
See:
GetWidgetLife. Seewidgetfor an explanation how this applies to units, destructables, items.- patch
1.00
- Source
- common.j (suggest an edit or discuss on Github)
- return type
nothing- Source code
native SetWidgetLife takes widget whichWidget, real newLife returns nothing