IsOffLimits - ObjectReference

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

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

See Also