Difference between revisions of "GetItemHealthPercent - ObjectReference"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Jlundin
 
imported>Sagitarius22
m
Line 24: Line 24:


== See Also ==
== See Also ==
*[[SetItemHealthPercent - ObjectReference]]
*[[ObjectReference Script]]
*[[ObjectReference Script]]

Revision as of 16:01, 20 December 2013

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