- Found in:
- SKSE
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)
EndFunctionAuto-Generated Example
float myFloat__health
myObjectReference__toCallFunctionOn.SetItemHealthPercent(myFloat__health)