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

Description

Wiki Description

This Function will Return the maximum charge of an ObjectReference.

Documentation Comment

Works on any enchanted item


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.

Examples

ObjectReference Property weaponRef Auto
String name
Float maxcharge 

Function weaponmaxcharge()
    maxcharge = weaponRef.GetItemMaxCharge()
    name = weaponRef.GetBaseObject().GetName()
    Debug.Trace(name + "'s maximum charge is " + maxcharge)
EndFunction

Auto-Generated Example

float returnedValue = myObjectReference__toCallFunctionOn.GetItemMaxCharge()

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.