enderalse/scripts/source/_00e_fs_itemcantdropscript.psc

15 lines
378 B
Plaintext
Raw Normal View History

Scriptname _00E_FS_ItemCantDropScript extends ObjectReference
Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
PlayerREF = Game.GetPlayer()
If akOldContainer == PlayerREF
If akNewContainer == None
PlayerREF.Additem(self)
Else
PlayerREF.Additem(self)
akNewContainer.RemoveItem(self)
EndIf
Endif
EndEvent
Actor PlayerREF