Difference between revisions of "IsOffLimits - ObjectReference"

142 bytes removed ,  18:07, 8 April 2022
Line 17: Line 17:


<source lang="papyrus">
<source lang="papyrus">
ObjectReference Property weaponRef Auto
ObjectReference ErikursBooze boozeRef Auto
Float charge


Function setWeaponcharge()
Function takeButDontSteal()
Charge = weaponRef.GetItemCharge()
if boozeRef.IsOffLimits()
weaponref.SetItemCharge((Charge + 100.0)); Adds 100 to the Current Charge.
boozeRef.Activate(playerRef) ; takes it
endif
EndFunction
EndFunction
</source>
</source>
*Do note that this will only work on a weapon that is currently loaded and not in a container.


== Notes ==
== Notes ==
149

edits