enderalse/scripts/source/_00e_disablelinkedrefonpickupsc.psc

12 lines
286 B
Plaintext

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