4
Fork 0
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.
 
 
 

16 lines
516 B

Scriptname Torch01_DummyScript extends ObjectReference
MiscObject Property Torch01Off_Dummy Auto
Light Property Torch01Off Auto
Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
Actor pl = Game.GetPlayer()
If akNewContainer == pl
; Debug.Trace("Torch01_DummyScript: replacing Torch01Off_Dummy with Torch01Off")
Int n = pl.GetItemCount(Torch01Off_Dummy)
If n > 0
pl.RemoveItem(Torch01Off_Dummy, n, True)
pl.AddItem(Torch01Off, n, True)
EndIf
EndIf
EndEvent