- Found in:
- SKSE
Description
Wiki Description
This Function will set a ObjectReference's charge to the specified amount.
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
floatcharge
Examples
ObjectReference Property weaponRef Auto
Float charge
Function setWeaponcharge()
Charge = weaponRef.GetItemCharge()
weaponref.SetItemCharge((Charge + 100.0)); Adds 100 to the Current Charge.
EndFunctionAuto-Generated Example
float myFloat__charge
myObjectReference__toCallFunctionOn.SetItemCharge(myFloat__charge)