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

Description

Wiki Description

This Function will set a ObjectReference's health (tempering state) to the specified amount. Works on weapons and armours, including clothes and rings.

Documentation Comment

Tempering


Caveats

CK Wiki - Notes

  • This function can only be run on items outside of containers, as when they are put into containers member functions cannot be called on them.

Parameters

floathealth


Examples

ObjectReference Property weaponRef Auto
Float currenthealth

Function TemperWeapon(float tempering)
    currenthealth = weaponRef.GetItemHealthPercent()
    weaponref.SetItemHealthPercent(currenthealth +tempering)
EndFunction

Auto-Generated Example

float myFloat__health

myObjectReference__toCallFunctionOn.SetItemHealthPercent(myFloat__health)

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.