Background for Skyrim SE
Member of the ObjectReference script
voidfunctionSetItemCharge(floatcharge)Native

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.
EndFunction

Auto-Generated Example

float myFloat__charge

myObjectReference__toCallFunctionOn.SetItemCharge(myFloat__charge)

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.