enderalse/scripts/source/_00e_mq11a_sc12_arrowchecksc.psc

19 lines
501 B
Plaintext

Scriptname _00E_MQ11a_SC12_ArrowCheckSC extends ObjectReference
Event OnTrigger(ObjectReference akActionRef)
Form actionBase = akActionRef.GetBaseObject()
If actionBase && _00E_MQ11a_SC12_ValidArrows.HasForm(actionBase) && (MQ11a_LeftTower.GetValueInt() == 4) && (bDone == False)
bDone = True
Self.GetLinkedRef().Enable()
MQ11a_LeftTower.SetValueInt(5)
EndIf
EndEvent
Bool bDone = False
GlobalVariable Property MQ11a_LeftTower Auto
Formlist Property _00E_MQ11a_SC12_ValidArrows Auto