Difference between revisions of "IsOffLimits - ObjectReference"
Jump to navigation
Jump to search
(Throwing in template info for start) |
(→Syntax) |
||
Line 8: | Line 8: | ||
== Syntax == | == Syntax == | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
Function | Bool Function IsOffLimits() native | ||
</source> | </source> | ||
Revision as of 17:06, 8 April 2022
SKSE Member of: ObjectReference Script
This Function will set a ObjectReference's charge to the specified amount.
Syntax
Bool Function IsOffLimits() native
Parameters
- charge - The amount, as a float you wish to set the Objects charge to.
Examples
ObjectReference Property weaponRef Auto
Float charge
Function setWeaponcharge()
Charge = weaponRef.GetItemCharge()
weaponref.SetItemCharge((Charge + 100.0)); Adds 100 to the Current Charge.
EndFunction
- Do note that this will only work on a weapon that is currently loaded and not in a container.
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.