Scriptname _00E_Ark_TempleDoorSC extends ObjectReference  


;=====================================================================================
;              							EVENTS                  					 
;=====================================================================================

Event OnCellAttach()

	Self.BlockActivation(True)

EndEvent

Event OnActivate(ObjectReference akActionRef)

	If Self.IsActivationBlocked()
		if akActionRef == PlayerREF
			if MQ03.GetStage() >= 10
				Self.BlockActivation(False)
				Self.Activate(PlayerREF, true)
			Else
				CapitalCity_Temple_FrontGuardREF.Say(GuardDialogue_TempleGateTopic)
			EndIf
		Else
			Self.Activate(akActionRef, True)
		EndIf
	EndIf
	
EndEvent

;=====================================================================================
;              							PROPERTIES                  					 
;=====================================================================================

Quest Property MQ03 Auto
Actor Property PlayerREF Auto
Actor Property CapitalCity_Temple_FrontGuardREF Auto
Topic Property GuardDialogue_TempleGateTopic Auto