GetItemHealthPercent - ObjectReference

From the Fallout4 CreationKit Wiki
Revision as of 16:49, 21 October 2011 by imported>Plplecuyer
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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[edit | edit source]

float Function GetItemHealthPercent() native

Parameters[edit | edit source]

None.

Return Value[edit | edit source]

The item health percent of this reference.

Examples[edit | edit source]

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

See Also[edit | edit source]