level escort
{
	start
	{
		skybox SkyboxWorkspace5
		light_dir -1.0 0.0 0.0
		light_type directional
		light_power_scale 1.0
		light_diffuse_color 0.8 0.4 0.2 1.0
		light_specular_color 0.8 0.4 0.2 1.0
		ambient_light_upperhemi_lowerhemi_dir 1.0 1.0 1.0 0.075 1.0 1.0 1.0 0.04875 -1.0 0.0 0.0
		player_ship_selection
		{
			team human
			{
				cd raw
				name ship_human0
				name ship_human1
				name ship_human2
			}
		}
		obj PlayerShip
		{
			type player_ship
			position -300.0 0.0 0.0
			orientation 0.0 1.0 0.0 -90.0
			ai 0
			invincible 1
		}
		obj Defender0
		{
			mesh ship_human2
			type fighter_ship
			position -300.0 0.0 2000.0
			orientation 0.0 0.0 0.0 0.0
			speed 0.0 0.0 0.0
			ai 1
			friendly 1
			behavior aggresive
			health 100
		}
		obj Defender1
		{
			mesh ship_human2
			type fighter_ship
			position -300.0 500.0 2000.0
			orientation 0.0 0.0 0.0 0.0
			speed 0.0 0.0 0.0
			ai 1
			friendly 1
			behavior aggresive
			health 100
		}
		obj Defender2
		{
			mesh ship_human0
			type fighter_ship
			position -300.0 200.0 2000.0
			orientation 0.0 0.0 0.0 0.0
			speed 0.0 0.0 0.0
			ai 1
			friendly 1
			behavior aggresive
			health 100
		}
		obj Defender3
		{
			mesh ship_human2
			type fighter_ship
			position -300.0 -200.0 2000.0
			orientation 0.0 0.0 0.0 0.0
			speed 0.0 0.0 0.0
			ai 1
			friendly 1
			behavior aggresive
			health 100
		}
		obj Defender4
		{
			mesh ship_human2
			type fighter_ship
			position -300.0 250.0 2000.0
			orientation 0.0 0.0 0.0 0.0
			speed 0.0 0.0 0.0
			ai 1
			friendly 1
			behavior aggresive
			health 100
		}
	}
	event invasion0
	{
		previous_end_cond
		{
			none
		}
		delay secs 25
		spawn
		{
			obj Attacker0
			{
				mesh ship_alien0
				type fighter_ship
				position -3000.0 300.0 -300.0
				orientation 0.0 0.0 0.0 0.0
				speed 0.0 0.0 0.0
				ai 1
				friendly 0
				behavior aggresive
				health 100
				prioritize 1 cargo_ship
			}
			obj Attacker1
			{
				mesh ship_alien0
				type fighter_ship
				position -3000.0 400.0 -300.0
				orientation 0.0 0.0 0.0 0.0
				speed 0.0 0.0 0.0
				ai 1
				friendly 0
				behavior aggresive
				health 100
				prioritize 1 cargo_ship
			}
			obj Attacker2
			{
				mesh ship_alien2
				type fighter_ship
				position -3000.0 500.0 -300.0
				orientation 0.0 0.0 0.0 0.0
				speed 0.0 0.0 0.0
				ai 1
				friendly 0
				behavior aggresive
				health 100
				prioritize 1 cargo_ship
			}
			obj Attacker3
			{
				mesh ship_alien2
				type fighter_ship
				position -3000.0 100.0 -300.0
				orientation 0.0 0.0 0.0 0.0
				speed 0.0 0.0 0.0
				ai 1
				friendly 0
				behavior aggresive
				health 100
				prioritize 1 cargo_ship
			}
			obj Attacker4
			{
				mesh ship_alien2
				type fighter_ship
				position -3000.0 -100.0 -300.0
				orientation 0.0 0.0 0.0 0.0
				speed 0.0 0.0 0.0
				ai 1
				friendly 0
				behavior aggresive
				health 100
				prioritize 1 cargo_ship
			}
		}
		end_cond invasion0_end
		{
			type win
			{
				cond win_cond
				{
					type destroyed
					objs 5 Attacker0 Attacker1 Attacker2 Attacker3 Attacker4
				}
			}
			type loss
			{
				cond loss_cond1
				{
					type time_elapsed
					secs 1200
				}
			}
		}
	}
	event reach_destination
	{
		previous_end_cond
		{
			none
		}
		delay secs 15
		spawn
		{
			obj CargoShip0
			{
				mesh ship_human_big1
				type cargo_ship
				position 0.0 0.0 0.0
				orientation 0.0 0.0 0.0 0.0
				speed 0.0 0.0 -5.0
				ai 1
				friendly 1
				health 1000
				destination 0.0 0.0 -5000.0
				reach_destination 1
				radius 100.0
			}
		}
		end_cond reach_destination_end
		{
			type win
			{
				cond win_cond
				{
					type ship_destination_reached
					objs 1 CargoShip0
				}
			}
			type loss
			{
				
				cond loss_cond
				{
					type destroyed
					objs 1 CargoShip0
					delay secs 20
				}
			}
		}
	}
	event invasion1
	{
		previous_end_cond
		{
			prev_conds 1 invasion0
		}
		delay secs 75
		spawn
		{
			obj Attacker5
			{
				mesh ship_alien3
				type fighter_ship
				position -3000.0 300.0 -300.0
				orientation 0.0 0.0 0.0 0.0
				speed 0.0 0.0 0.0
				ai 1
				friendly 0
				behavior aggresive
				health 100
				prioritize 1 cargo_ship
			}
			obj Attacker6
			{
				mesh ship_alien3
				type fighter_ship
				position -3000.0 400.0 -300.0
				orientation 0.0 0.0 0.0 0.0
				speed 0.0 0.0 0.0
				ai 1
				friendly 0
				behavior aggresive
				health 100
				prioritize 1 cargo_ship
			}
			obj Attacker7
			{
				mesh ship_alien3
				type fighter_ship
				position -3000.0 500.0 -300.0
				orientation 0.0 0.0 0.0 0.0
				speed 0.0 0.0 0.0
				ai 1
				friendly 0
				behavior aggresive
				health 100
				prioritize 1 cargo_ship
			}
		}
		end_cond invasion1_end
		{
			type win
			{
				cond win_cond
				{
					type destroyed
					objs 3 Attacker5 Attacker6 Attacker7
				}
			}
			type loss
			{
				cond loss_cond1
				{
					type time_elapsed
					secs 1200
				}
			}
		}
	}
	event cargo_ship_exit
	{
		previous_end_cond
		{
			prev_conds 1 reach_destination
		}
		delay secs 10
		exit
		{
			objs 1 CargoShip0
		}
		delay secs 3
		end_cond ship_exit
		{
			type win
			{
				cond win_cond
				{
					type exited
					objs 1 CargoShip0
				}
			}
		}
	}
	end
	{
		events 1 cargo_ship_exit
	}
}
