Background for Skyrim SE
Member of the ObjectReference script
floatfunctionGetItemHealthPercent()Native

Description

Wiki Description

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

Documentation Comment

Returns the smithed health of this object reference (1.0 == 100%)


Caveats

CK Wiki - Notes

  • If this function is called on a ref that isn't an item, or a ref whose health percent has somehow been manipulated to be a value less than 1, then this function will return 1.

Examples

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

Auto-Generated Example

float returnedValue = myObjectReference__toCallFunctionOn.GetItemHealthPercent()

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.