Difference between revisions of "GetItemHealthPercent - ObjectReference"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Sagitarius22
m
imported>Rasikko
Line 22: Line 22:
endIf
endIf
</source>
</source>
== Notes ==
* A return of 1.6 is Legendary.


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

Revision as of 14:34, 30 November 2017

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

Notes

  • A return of 1.6 is Legendary.

See Also