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.
46 lines
1.4 KiB
46 lines
1.4 KiB
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
|
|
|
|
|