SetItemRefCurrentHealth
From GECK
A function added by the JIP NVSE Plugin.
Contents
Description
Sets the current health of the calling item. Unlike SetEquippedCurrentHealth, this function is called on an inventory reference. The calling item reference does not have to be equipped.
- If the 2nd argument, setPercent, is non-zero, the function will set the calling item's health percent (0.0 to 1.0).
Syntax
(success:0/1) reference.SetItemRefCurrentHealth newHealth:float setPercent:0/1
Example
rItemRef.SetItemRefCurrentHealth 185
rItemRef.SetItemRefCurrentHealth 0.7 1