2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_ClassMenuItemHandlerAliasScript extends ReferenceAlias
|
|
|
|
|
|
|
|
Actor Property PlayerREF Auto
|
|
|
|
|
|
|
|
Event OnItemRemoved(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akDestContainer)
|
|
|
|
|
|
|
|
If akItemReference != None && akDestContainer == None
|
2024-02-13 08:41:14 +00:00
|
|
|
if akItemReference.GetBaseObject() as Armor || akItemReference.GetBaseObject() as Weapon
|
2021-10-05 22:43:40 +00:00
|
|
|
PlayerREF.AddItem(akItemReference, aiItemCount, true)
|
|
|
|
else
|
|
|
|
akItemReference.Disable()
|
|
|
|
akItemReference.Delete()
|
|
|
|
PlayerREF.AddItem(akBaseItem, aiItemCount, true)
|
|
|
|
endif
|
2021-10-05 22:15:58 +00:00
|
|
|
EndIf
|
|
|
|
|
2021-10-05 22:43:40 +00:00
|
|
|
EndEvent
|