enderalse/scripts/source/_00e_mq16_sc02_elevatorsc.psc

47 lines
1.4 KiB
Plaintext
Raw Normal View History

Scriptname _00E_MQ16_SC02_ElevatorSC extends ObjectReference Conditional
;=====================================================================================
; FUNCTIONS
;=====================================================================================
Event OnTriggerEnter(ObjectReference akActionRef)
If akActionRef == MQ16._00E_MC_YuslanREF
bYuslanInTrigger = True
ElseIf akActionRef == MQ16._00E_MC_TealorREF
bTealorInTrigger = True
ElseIf akActionRef == MQ16.akCompanion
bCompanionInTrigger = True
EndIf
If akActionRef == Game.GetPlayer()
MQ16.akCompanion.EvaluatePackage()
MQ16.akTealor.EvaluatePackage()
MQ16.akYuslan.EvaluatePackage()
EndIf
EndEvent
Event OnTriggerLeave(ObjectReference akActionRef)
If akActionRef == MQ16._00E_MC_YuslanREF
bYuslanInTrigger = False
ElseIf akActionRef == MQ16._00E_MC_TealorREF
bTealorInTrigger = False
ElseIf akActionRef == MQ16.akCompanion
bCompanionInTrigger = False
EndIf
EndEvent
;=====================================================================================
; PROPERTIES
;=====================================================================================
bool Property bCompanionInTrigger Auto Conditional Hidden
bool Property bTealorInTrigger Auto Conditional Hidden
bool Property bYuslanInTrigger Auto Conditional Hidden
_00E_MQ16_Functions Property MQ16 Auto