;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Player crash check

CrashCheck
{
	Actions
	{
		# "Fail"
		# "VoiceMessage" { Text #MAll.Failed }
	}
	Condition Or
	{
		# "Exists" { ObjectId "PlayerAirplane" Negation "1" }
		# "Exists" { ObjectId "Player" Negation "1" }
	    # "HitPoints" { ObjectId "PlayerAirplane" Op "Equal" Value "0" }
	}
}

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; End mission events

EndMission
{
	Condition Or
	{
        # "Succeed"
        # "Fail"
	}
}

ShowEndMissionPage
{
	Actions
	{
		# ShowEndMsnPg
	}
	Condition And
	{
        # "TimeFromEvent" { EventName "EndMission" Op "Greater" Value "10" }
        # "AnnouncerEmpty"
	}
}

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; End mission cheat

EndMissionCheat01
{
	Condition And
	{
		# "Key" { Key "I" }
	}
}

EndMissionCheat02
{
	Actions
	{
		# "ResetEvent" { EventName "EndMissionCheat01" }
	}
	Condition And
	{
		# "Key" { Key "A" }
		# "Event" { EventName "EndMissionCheat01" }
	}
}

EndMissionCheat03
{
	Actions
	{
		# "ResetEvent" { EventName "EndMissionCheat02" }
	}
	Condition And
	{
		# "Key" { Key "V" }
		# "Event" { EventName "EndMissionCheat01" }
	}
}

EndMissionCheat04
{
	Actions
	{
		# "ResetEvent" { EventName "EndMissionCheat03" }
	}
	Condition And
	{
		# "Key" { Key "M" }
		# "Event" { EventName "EndMissionCheat01" }
	}
}

EndMissionCheat05
{
	Actions
	{
		# "ResetEvent" { EventName "EndMissionCheat04" }
	}
	Condition And
	{
		# "Key" { Key "S" }
		# "Event" { EventName "EndMissionCheat01" }
	}
}

EndMissionCheat06
{
	Actions
	{
		# "ResetEvent" { EventName "EndMissionCheat05" }
	}
	Condition And
	{
		# "Key" { Key "U" }
		# "Event" { EventName "EndMissionCheat01" }
	}
}

EndMissionCheat
{
	Actions
	{
		# "ResetEvent" { EventName "EndMissionCheat06" }
		# "Succeed"
	}
	Condition And
	{
		# "Key" { Key "C" }
		# "Event" { EventName "EndMissionCheat01" }
	}
}
