Enderal SE https://mod.pub/enderal-se/38-enderal-se
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
584 B
18 lines
584 B
3 years ago
|
Scriptname _00E_ClassMenuItemHandlerAliasScript extends ReferenceAlias
|
||
|
|
||
|
Actor Property PlayerREF Auto
|
||
|
|
||
|
Event OnItemRemoved(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akDestContainer)
|
||
|
|
||
|
If akItemReference != None && akDestContainer == None
|
||
3 years ago
|
if akItemReference.GetBaseObject().GetType() == 26 || akItemReference.GetBaseObject().GetType() == 41
|
||
|
PlayerREF.AddItem(akItemReference, aiItemCount, true)
|
||
|
else
|
||
|
akItemReference.Disable()
|
||
|
akItemReference.Delete()
|
||
|
PlayerREF.AddItem(akBaseItem, aiItemCount, true)
|
||
|
endif
|
||
3 years ago
|
EndIf
|
||
|
|
||
3 years ago
|
EndEvent
|