<?xml version="1.0" encoding="utf-8"?>
<AstroMenaceScript name="AstroMenace mission script">
<Load>

	<StarSystem1/><!-- StarSystem 1 SkyBox -->
	<Pirate/><!-- Pirates -->
	<Planet/><!-- Planets -->
	<Asteroid/><!-- Asteroids -->
	<BasePart/><!--Parts of the pirate base -->

	<!-- Load aimode file -->
	<AIFile>DATA/SCRIPT/aimode.xml</AIFile>

	<!-- Setup stars tile layer transparency for this mission -->
	<LayersTransp FirstStart="0.4" SecondStart="0.3"/>

</Load>
<Action>

	<!-- Debug setup -->
	<Debug showline="0" undead="0" showbb="0"/>
	
	<!-- Environment setup-->

	<!-- Star system -->
	<StarSystem system="1" angley="-50" anglez="35"/>
	<!-- Planets -->
	<CreatePlanet type="2" speed="0.7" posax="200" posay="-170" posaz="600"/>
	<CreatePlanet type="4" speed="1.4" posax="-270" posay="-350" posaz="1300" anglax="45"/>
	<!-- Lights -->
	<Light dirx="0.25" diry="-0.25" dirz="0.0" diffr="0.7" diffg="0.7" diffb="1.0" specr="0.7" specg="0.7" specb="1.0" ambir="1" ambig="1" ambib="1"/>	


	<!--Goto label="end"/-->


	
	<!--at the mission start /-->
	<TimeLine>

		<!-- big asteroids (dynamic backgroud) /-->
		<CreateBigAsteroid type="11" speed="4" posx="0" posy="-150" posz="530"/>
		<CreateBigAsteroid type="12" speed="4" posx="200" posy="-120" posz="700"/>
		<CreateBigAsteroid type="13" speed="4" posx="-260" posy="-160" posz="870"/>

		<CreateBigAsteroid type="14" speed="4" posx="100" posy="-110" posz="1040"/>
		<CreateBigAsteroid type="15" speed="4" posx="-140" posy="-150" posz="1200"/>

		<CreateBigAsteroid type="11" speed="4" posx="-40" posy="-90" posz="1480"/>
		<CreateBigAsteroid type="12" speed="4" posx="240" posy="-150" posz="1700"/>
		<CreateBigAsteroid type="13" speed="4" posx="-200" posy="-100" posz="1910"/>

		<CreateBigAsteroid type="14" speed="4" posx="140" posy="-150" posz="2140"/>
		<CreateBigAsteroid type="15" speed="4" posx="-100" posy="-110" posz="2300"/>

	</TimeLine>





	<!--2 pirate ships  /-->
	<TimeLine value="0">
		<PirateShip type="1" aimode="131" posx="40" posy="-2" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		 <PirateShip type="1" aimode="131" posx="30" posy="-2" posz="280" angly="180"/>
	</TimeLine>

	<!--2 pirate ships  /-->
	<TimeLine value="3">
		<PirateShip type="1" aimode="131" posx="-40" posy="-2" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<PirateShip type="1" aimode="131" posx="-30" posy="-2" posz="280" angly="180"/>
	</TimeLine>

	<!--2 pirate ships  /-->
	<TimeLine value="3">
		<PirateShip type="1" aimode="131" posx="10" posy="-2" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<PirateShip type="1" aimode="131" posx="0" posy="-2" posz="280" angly="180"/>
	</TimeLine>



	<!-- zig-zag, pirate ships  /-->
	<TimeLine value="2">
		<PirateShip type="1" aimode="113" posx="-15" posy="-2" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="113" posx="-15" posy="-2" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="113" posx="-15" posy="-2" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="113" posx="-15" posy="-2" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="113" posx="-15" posy="-2" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="113" posx="-15" posy="-2" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="113" posx="-15" posy="-2" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="113" posx="-15" posy="-2" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="113" posx="-15" posy="-2" posz="300" angly="180"/>
	</TimeLine>



	<!-- zig-zag, pirate ships  /-->
	<TimeLine value="3">
		<PirateShip type="1" aimode="113" posx="-60" posy="-2" posz="300" angly="180"/>
		<PirateShip type="1" aimode="119" posx="60" posy="-2" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="113" posx="-65" posy="-2" posz="300" angly="180"/>
		<PirateShip type="1" aimode="119" posx="60" posy="-2" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="113" posx="-60" posy="-2" posz="300" angly="180"/>
		<PirateShip type="1" aimode="119" posx="60" posy="-2" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="113" posx="-60" posy="-2" posz="300" angly="180"/>
		<PirateShip type="1" aimode="119" posx="60" posy="-2" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="113" posx="-60" posy="-2" posz="300" angly="180"/>
		<PirateShip type="1" aimode="119" posx="60" posy="-2" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="113" posx="-60" posy="-2" posz="300" angly="180"/>
		<PirateShip type="1" aimode="119" posx="60" posy="-2" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="113" posx="-60" posy="-2" posz="300" angly="180"/>
		<PirateShip type="1" aimode="119" posx="60" posy="-2" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="113" posx="-60" posy="-2" posz="300" angly="180"/>
		<PirateShip type="1" aimode="119" posx="60" posy="-2" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="113" posx="-60" posy="-2" posz="300" angly="180"/>
		<PirateShip type="1" aimode="119" posx="60" posy="-2" posz="300" angly="180"/>
	</TimeLine>



	<!-- zig-zag, pirate ships  /-->
	<TimeLine value="5">
		<PirateShip type="1" aimode="123" posx="-15" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="123" posx="-15" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="123" posx="-15" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="123" posx="-15" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="123" posx="-15" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="123" posx="-15" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="124" posx="-15" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="125" posx="-15" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="126" posx="-15" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="123" posx="-15" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="124" posx="-15" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="125" posx="-15" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="123" posx="-15" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="127" posx="-15" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="123" posx="-15" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="124" posx="-15" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="125" posx="-15" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="123" posx="-15" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="126" posx="-15" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="123" posx="-15" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="123" posx="-15" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="124" posx="-15" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="125" posx="-15" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="127" posx="-15" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="126" posx="-15" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="123" posx="-15" posy="0" posz="280" angly="180"/>
	</TimeLine>







	<!-- pirate ships  /-->
	<TimeLine value="6">
		<PirateShip type="2" speed="20" acceler="0.3" posx="0" posy="-6" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<PirateShip type="2" speed="20" acceler="0.3" posx="60" posy="-6" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<PirateShip type="2" speed="20" acceler="0.3" posx="-50" posy="-6" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<PirateShip type="2" speed="20" acceler="0.3" posx="40" posy="-6" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<PirateShip type="2" speed="20" acceler="0.3" posx="-70" posy="-6" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<PirateShip type="2" speed="20" acceler="0.3" posx="80" posy="-6" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<PirateShip type="2" speed="20" acceler="0.3" posx="0" posy="-6" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<PirateShip type="2" speed="20" acceler="0.3" posx="-40" posy="-6" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<PirateShip type="2" speed="20" acceler="0.3" posx="60" posy="-6" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<PirateShip type="2" speed="20" acceler="0.3" posx="-50" posy="-6" posz="300" angly="180"/>
	</TimeLine>


	<!-- acceleration, pirate ships /-->
	<TimeLine value="1">
		<PirateShip type="2" speed="40" acceler="0.3" posx="20" posy="0" posz="310" angly="180"/>
		<PirateShip type="2" speed="40" acceler="0.3" posx="40" posy="0" posz="300" angly="180"/>
		<PirateShip type="2" speed="40" acceler="0.3" posx="60" posy="0" posz="310" angly="180"/>
	</TimeLine>

	<!-- pirate ships  /-->
	<TimeLine value="1">
		<PirateShip type="2" speed="20" acceler="0.3" posx="0" posy="-6" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<PirateShip type="2" speed="20" acceler="0.3" posx="-40" posy="-6" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<PirateShip type="2" speed="20" acceler="0.3" posx="60" posy="-6" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<PirateShip type="2" speed="20" acceler="0.3" posx="-50" posy="-6" posz="300" angly="180"/>
	</TimeLine>


	<!-- acceleration, pirate ships /-->
	<TimeLine value="1">
		<PirateShip type="2" speed="40" acceler="0.3" posx="-20" posy="0" posz="310" angly="180"/>
		<PirateShip type="2" speed="40" acceler="0.3" posx="-40" posy="0" posz="300" angly="180"/>
		<PirateShip type="2" speed="40" acceler="0.3" posx="-60" posy="0" posz="310" angly="180"/>
	</TimeLine>


	<!-- pirate ships  /-->
	<TimeLine value="1">
		<PirateShip type="2" speed="20" acceler="0.3" posx="0" posy="-6" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<PirateShip type="2" speed="20" acceler="0.3" posx="60" posy="-6" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<PirateShip type="2" speed="20" acceler="0.3" posx="-50" posy="-6" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<PirateShip type="2" speed="20" acceler="0.3" posx="40" posy="-6" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<PirateShip type="2" speed="20" acceler="0.3" posx="-70" posy="-6" posz="300" angly="180"/>
	</TimeLine>


	<!-- acceleration, pirate ships /-->
	<TimeLine value="1">
		<PirateShip type="2" speed="50" acceler="0.5" posx="-20" posy="0" posz="310" angly="180"/>
		<PirateShip type="2" speed="50" acceler="0.5" posx="00" posy="0" posz="300" angly="180"/>
		<PirateShip type="2" speed="50" acceler="0.5" posx="20" posy="0" posz="310" angly="180"/>
	</TimeLine>




	<!-- zig-zag, pirate ships  /-->
	<TimeLine value="2">
		<PirateShip type="1" aimode="123" posx="-15" posy="0" posz="300" angly="180"/>
		<PirateShip type="2" speed="20" acceler="0.3" posx="0" posy="-4" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="123" posx="-15" posy="0" posz="300" angly="180"/>
		<PirateShip type="2" speed="20" acceler="0.3" posx="60" posy="-4" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="123" posx="-15" posy="0" posz="300" angly="180"/>
		<PirateShip type="2" speed="20" acceler="0.3" posx="-50" posy="-4" posz="300" angly="180"/>
		<PirateShip type="2" speed="50" acceler="0.3" posx="0" posy="5" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="123" posx="-15" posy="0" posz="300" angly="180"/>
		<PirateShip type="2" speed="20" acceler="0.3" posx="40" posy="-4" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="123" posx="-15" posy="0" posz="300" angly="180"/>
		<PirateShip type="2" speed="20" acceler="0.3" posx="-70" posy="-5" posz="300" angly="180"/>
		<PirateShip type="2" speed="50" acceler="0.3" posx="20" posy="5" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="123" posx="-15" posy="0" posz="300" angly="180"/>
		<PirateShip type="2" speed="20" acceler="0.3" posx="80" posy="-4" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="123" posx="-15" posy="0" posz="300" angly="180"/>
		<PirateShip type="2" speed="20" acceler="0.3" posx="-40" posy="-4" posz="300" angly="180"/>
		<PirateShip type="2" speed="50" acceler="0.3" posx="-10" posy="5" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="123" posx="-15" posy="0" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="123" posx="-15" posy="0" posz="300" angly="180"/>
		<PirateShip type="2" speed="20" acceler="0.3" posx="60" posy="-4" posz="300" angly="180"/>
		<PirateShip type="2" speed="50" acceler="0.3" posx="0" posy="5" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="2" speed="20" acceler="0.3" posx="60" posy="-4" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="2" speed="20" acceler="0.3" posx="-50" posy="-4" posz="300" angly="180"/>
		<PirateShip type="2" speed="50" acceler="0.3" posx="10" posy="5" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="2" speed="20" acceler="0.3" posx="40" posy="-4" posz="300" angly="180"/>
	</TimeLine>





	<!-- pirate ships  /-->
	<TimeLine value="4">
		<PirateShip type="2" aimode="141" posx="40" posy="-2" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		 <PirateShip type="2" aimode="141" posx="30" posy="-2" posz="280" angly="180"/>
	</TimeLine>

	<!-- pirate ships  /-->
	<TimeLine value="3">
		<PirateShip type="2" aimode="141" posx="-40" posy="-2" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<PirateShip type="2" aimode="141" posx="-30" posy="-2" posz="280" angly="180"/>
	</TimeLine>

	<!-- pirate ships  /-->
	<TimeLine value="3">
		<PirateShip type="2" aimode="141" posx="10" posy="-2" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<PirateShip type="2" aimode="141" posx="0" posy="-2" posz="280" angly="180"/>
	</TimeLine>



	<!-- switch on second ("boss" or danger) music theme /-->	
	<Music theme="2"/>










	<!-- zig-zag, pirate ships + missile attack /-->
	<TimeLine value="2">
		<PirateShip type="1" aimode="123" posx="-15" posy="0" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="123" posx="-15" posy="0" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="123" posx="-15" posy="0" posz="300" angly="180"/>
		<PirateShip type="2" aimode="141" acceler="0.3" posx="50" posy="-4" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="123" posx="-15" posy="0" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="123" posx="-15" posy="0" posz="300" angly="180"/>
		<PirateShip type="2" aimode="141" acceler="0.3" posx="-60" posy="-4" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="123" posx="-15" posy="0" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="124" posx="-15" posy="0" posz="300" angly="180"/>
		<PirateShip type="2" aimode="141" acceler="0.3" posx="40" posy="-4" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="125" posx="-15" posy="0" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="126" posx="-15" posy="0" posz="300" angly="180"/>
		<PirateShip type="2" aimode="141" acceler="0.3" posx="-30" posy="-4" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="123" posx="-15" posy="0" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="124" posx="-15" posy="0" posz="300" angly="180"/>
		<PirateShip type="2" aimode="141" acceler="0.3" posx="70" posy="-4" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="125" posx="-15" posy="0" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="123" posx="-15" posy="0" posz="300" angly="180"/>
		<PirateShip type="2" aimode="141" acceler="0.3" posx="-60" posy="-4" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="127" posx="-15" posy="0" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="123" posx="-15" posy="0" posz="300" angly="180"/>
		<PirateShip type="2" aimode="141" acceler="0.3" posx="50" posy="-4" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="124" posx="-15" posy="0" posz="300" angly="180"/>
	</TimeLine>

	<!-- part of the pirate space base /-->
	<TimeLine value="1">
		<CreateBasePart type="5" posx="50" posy="-6" posz="500"/>
		<CreateBasePart type="5" posx="50" posy="-6" posz="560"/>
		<CreateBasePart type="5" posx="50" posy="-6" posz="620"/>
		<CreateBasePart type="5" posx="50" posy="-6" posz="680"/>

		<CreateBasePart type="5" posx="80" posy="-6" posz="560" angly="-90"/>
		<CreateBasePart type="5" posx="140" posy="-6" posz="560" angly="-90"/>


		<CreateBasePart type="12" posx="84" posy="-30" posz="700"/>
		<CreateBasePart type="4" posx="41" posy="-30" posz="700" anglay="90"/>
		<CreateBasePart type="4" posx="127" posy="-30" posz="700" anglay="90"/>
		<CreateBasePart type="4" posx="185" posy="-30" posz="700" anglay="90"/>
		<CreateBasePart type="4" posx="243" posy="-30" posz="700" anglay="90"/>

		<CreateBasePart type="4" posx="84" posy="-30" posz="743"/>
		<CreateBasePart type="4" posx="84" posy="-30" posz="801"/>
		<CreateBasePart type="4" posx="84" posy="-30" posz="859"/>
		<CreateBasePart type="4" posx="84" posy="-30" posz="917"/>
		<CreateBasePart type="4" posx="84" posy="-30" posz="975"/>
		<CreateBasePart type="4" posx="84" posy="-30" posz="1033"/>
	</TimeLine>

	<!-- zig-zag, pirate ships + missile attack /-->
	<TimeLine value="1">
		<PirateShip type="1" aimode="125" posx="-15" posy="0" posz="300" angly="180"/>
		<PirateShip type="2" aimode="141" acceler="0.3" posx="-40" posy="-4" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="123" posx="-15" posy="0" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="126" posx="-15" posy="0" posz="300" angly="180"/>
		<PirateShip type="2" aimode="141" acceler="0.3" posx="40" posy="-4" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="123" posx="-15" posy="0" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="123" posx="-15" posy="0" posz="250" angly="300"/>
		<PirateShip type="2" aimode="141" acceler="0.3" posx="-50" posy="-4" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="124" posx="-15" posy="0" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="125" posx="-15" posy="0" posz="300" angly="180"/>
		<PirateShip type="2" aimode="141" acceler="0.3" posx="70" posy="-4" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="127" posx="-15" posy="0" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="126" posx="-15" posy="0" posz="300" angly="180"/>
		<PirateShip type="2" aimode="141" acceler="0.3" posx="-60" posy="-4" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<PirateShip type="1" aimode="123" posx="-15" posy="0" posz="300" angly="180"/>
	</TimeLine>






	<!-- big pirate ships with cover ships /-->
	<TimeLine value="0">
		<PirateShip type="1" speed="15" posx="-320" posy="0" posz="330" angly="-90"/>
	</TimeLine>
	<TimeLine value="0.2">
		<PirateShip type="1" speed="15" posx="-300" posy="0" posz="350" angly="-90"/>
	</TimeLine>
	<TimeLine value="0.2">
		<PirateShip type="1" speed="15" posx="-320" posy="0" posz="370" angly="-90"/>
	</TimeLine>
	<TimeLine value="0">
		<PirateShip type="6" speed="8" posx="-250" posy="-35" posz="340" anglay="-90"/>
		<PirateShip type="8" speed="8" posx="-220" posy="-35" posz="380" anglay="-90"/>

		<PirateShip type="9" speed="8" posx="-200" posy="-25" posz="390" anglay="-90"/>
		<PirateShip type="10" speed="8" posx="-250" posy="-25" posz="390" anglay="-90"/>
		<PirateShip type="8" speed="8" posx="-240" posy="-15" posz="310" anglay="-90"/>
	</TimeLine>

	<TimeLine value="4">
		<PirateShip type="1" speed="15" posx="-320" posy="0" posz="280" angly="-90"/>
	</TimeLine>
	<TimeLine value="0.2">
		<PirateShip type="1" speed="15" posx="-300" posy="0" posz="300" angly="-90"/>
	</TimeLine>
	<TimeLine value="0.2">
		<PirateShip type="1" speed="15" posx="-320" posy="0" posz="320" angly="-90"/>
	</TimeLine>

	<TimeLine value="4">
		<PirateShip type="1" aimode="132" speed="15" posx="-320" posy="0" posz="220" angly="-90"/>
	</TimeLine>
	<TimeLine value="0.2">
		<PirateShip type="1" aimode="132" speed="15" posx="-300" posy="0" posz="240" angly="-90"/>
	</TimeLine>
	<TimeLine value="0.2">
		<PirateShip type="1" aimode="132" speed="15" posx="-320" posy="0" posz="260" angly="-90"/>
	</TimeLine>

	<TimeLine value="4">
		<PirateShip type="1" aimode="132" speed="15" posx="-320" posy="0" posz="190" angly="-90"/>
	</TimeLine>
	<TimeLine value="0.2">
		<PirateShip type="1" aimode="132" speed="15" posx="-300" posy="0" posz="210" angly="-90"/>
	</TimeLine>
	<TimeLine value="0.2">
		<PirateShip type="1" aimode="132" speed="15" posx="-320" posy="0" posz="230" angly="-90"/>
	</TimeLine>

	<TimeLine value="4">
		<PirateShip type="1" aimode="132" speed="15" posx="-320" posy="0" posz="180" angly="-90"/>
	</TimeLine>
	<TimeLine value="0.2">
		<PirateShip type="1" aimode="132" speed="15" posx="-300" posy="0" posz="200" angly="-90"/>
	</TimeLine>
	<TimeLine value="0.2">
		<PirateShip type="1" aimode="132" speed="15" posx="-320" posy="0" posz="220" angly="-90"/>
	</TimeLine>





<!--Label name="end"/-->



	<TimeLine value="24"/>

	<!-- all is ok now, switch to "normal" game music theme /-->	
	<Music theme="1"/>

	<TimeLine value="3"/>

	<!-- end -->
	<MissionComplete />

</Action>
</AstroMenaceScript>
