Difference between revisions of "IsOffLimits - ObjectReference"

From the CreationKit Wiki
Jump to navigation Jump to search
Line 30: Line 30:
== See Also ==
== See Also ==
*[[ObjectReference Script]]
*[[ObjectReference Script]]
*[[GetItemCharge - ObjectReference]]
*[[GetItemMaxCharge - ObjectReference]]

Revision as of 17:08, 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 ErikursBooze boozeRef Auto

Function takeButDontSteal()
	if boozeRef.IsOffLimits()
		boozeRef.Activate(playerRef) ; takes it
	endif
EndFunction

Notes

See Also