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