SetWidgetLife

Parameters
whichWidget widget

target widget.

newLife real

set 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. See widget for an explanation how this applies to units, destructables, items.

return type
nothing
Source code
native SetWidgetLife takes widget whichWidget, real newLife returns nothing
Source
widget.j
wc3modding.com
SetWidgetLife