enderalse/source/scripts/_00e_disablelinkedrefonpickupsc.psc

12 lines
286 B
Plaintext
Raw Normal View History

Scriptname _00E_DisableLinkedRefOnPickUpSC extends ObjectReference
Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
if akNewContainer == Game.GetPlayer() && !bDone
bDone = True
Self.GetLinkedRef().Disable()
endIf
endEvent
bool bDone