GetItemHealthPercent - ObjectReference

From the CreationKit Wiki
Revision as of 16:01, 20 December 2013 by imported>Sagitarius22
Jump to navigation Jump to search

Member of: ObjectReference Script

Returns the item health percent of this object. Items begin at 100% (1.0) and can be increased via crafting.

Syntax

float Function GetItemHealthPercent() native

Parameters

None.

Return Value

The item health percent of this reference.

Examples

if (SwordRef.GetItemHealthPercent() > 1.0 )
  Debug.Trace("Sword has been smithed")
endIf

See Also