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.

patch

1.00

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