Difference between revisions of "GetItemHealthPercent - ObjectReference"
Jump to navigation
Jump to search
imported>Rasikko m (→Examples) |
imported>Rasikko (Added what the return values represent in terms of improvement quality.) |
||
Line 15: | Line 15: | ||
== Return Value == | == Return Value == | ||
The item health percent of this reference. | The item health percent of this reference. | ||
*1.1 = Fine | |||
*1.2 = Superior | |||
*1.3 = Exquisite | |||
*1.4 = Flawless | |||
*1.5 = Epic | |||
*1.6 = Legendary | |||
== Examples == | == Examples == | ||
Line 22: | Line 28: | ||
endIf | endIf | ||
</source> | </source> | ||
== See Also == | == See Also == | ||
*[[SetItemHealthPercent - ObjectReference]] | *[[SetItemHealthPercent - ObjectReference]] | ||
*[[ObjectReference Script]] | *[[ObjectReference Script]] |
Revision as of 02:40, 1 December 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.
- 1.1 = Fine
- 1.2 = Superior
- 1.3 = Exquisite
- 1.4 = Flawless
- 1.5 = Epic
- 1.6 = Legendary
Examples
if (SwordRef.GetItemHealthPercent() > 1.0 )
Debug.Trace("Sword has been smithed")
endIf