enderalse/scripts/source/_00e_classmenuitemhandleraliasscript.psc

11 lines
354 B
Plaintext

Scriptname _00E_ClassMenuItemHandlerAliasScript extends ReferenceAlias
Actor Property PlayerREF Auto
Event OnItemRemoved(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akDestContainer)
If akItemReference != None && akDestContainer == None
PlayerREF.AddItem(akItemReference, aiItemCount, true)
EndIf
EndEvent