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

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

	<!-- 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="75"/>
	<!-- Planets -->
	<CreatePlanet type="1" speed="0.7" posax="-200" posay="-220" posaz="700" anglax="35"/>
	<CreatePlanet type="4" speed="1.4" posax="270" posay="-350" posaz="700" anglax="-45"/>
	<CreatePlanet type="4" speed="1.4" posax="50" posay="-250" posaz="1400" anglax="-45"/>
	<!-- Lights -->
	<Light dirx="1.0" diry="-0.5" 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 with low speed movement /-->
		<CreateBigAsteroid type="1" speed="4" posx="140" posy="-150" posz="240"/>
		<CreateBigAsteroid type="1" speed="4" posx="-100" posy="-110" posz="300"/>

		<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>





	<!-- First pirate raiders group -->


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

	<!--pirates big ship /-->
	<TimeLine value="1">
		<PirateShip type="13" speed="5" posx="-20" posy="-10" posz="320" angly="180"/>
	</TimeLine>

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

	<!--pirates big ship /-->
	<TimeLine value="1">
		<PirateShip type="13" speed="5" posx="20" posy="-13" posz="320" angly="180"/>
	</TimeLine>

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

	<!--pirates big ship /-->
	<TimeLine value="1">
		<PirateShip type="14" speed="5" posx="0" posy="-15" posz="320" angly="180"/>
	</TimeLine>

	<!--2 pirate ships  /-->
	<TimeLine value="1">
		<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="1">
		<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>

	<!--pirates big ship /-->
	<TimeLine value="1">
		<PirateShip type="11" speed="5" posx="10" posy="-10" posz="320" angly="180"/>
	</TimeLine>












	<!-- base part, first base block /-->	
	<TimeLine>
		<CreateBasePart type="4" posx="207" posy="-20" posz="384" anglay="90"/>
		<CreateBasePart type="4" posx="159" posy="-20" posz="384" anglay="90"/>
		<CreateBasePart type="4" posx="101" posy="-20" posz="384" anglay="90"/>
		<CreateBasePart type="4" posx="43" posy="-20" posz="384" anglay="90"/>
		<CreateBasePart type="4" posx="-43" posy="-20" posz="384" anglay="90"/>
		<CreateBasePart type="4" posx="-101" posy="-20" posz="384" anglay="90"/>
		<CreateBasePart type="4" posx="-159" posy="-20" posz="384" anglay="90"/>
		<CreateBasePart type="4" posx="-207" posy="-20" posz="384" anglay="90"/>
		<CreateBasePart type="12" posx="0" posy="-20" posz="384"/>
		<CreateBasePart type="4" posx="0" posy="-20" posz="427"/>
		<CreateBasePart type="4" posx="0" posy="-20" posz="485"/>
		<CreateBasePart type="4" posx="0" posy="-20" posz="543"/>
		<CreateBasePart type="4" posx="0" posy="-20" posz="601"/>
		<CreateBasePart type="4" posx="0" posy="-20" posz="659"/>
		<CreateBasePart type="4" posx="0" posy="-20" posz="717"/>
		<CreateBasePart type="4" posx="0" posy="-20" posz="775"/>
		<CreateBasePart type="4" posx="0" posy="-20" posz="833"/>
		<CreateBasePart type="4" posx="0" posy="-20" posz="891"/>
		<CreateBasePart type="4" posx="0" posy="-20" posz="949"/>
		<CreateBasePart type="13" posx="0" posy="-20" posz="992"/>
		<CreateBasePart type="4" posx="207" posy="-20" posz="992" anglay="90"/>
		<CreateBasePart type="4" posx="159" posy="-20" posz="992" anglay="90"/>
		<CreateBasePart type="4" posx="101" posy="-20" posz="992" anglay="90"/>
		<CreateBasePart type="4" posx="43" posy="-20" posz="992" anglay="90"/>
		<CreateBasePart type="4" posx="-43" posy="-20" posz="992" anglay="90"/>
		<CreateBasePart type="4" posx="-101" posy="-20" posz="992" anglay="90"/>
		<CreateBasePart type="4" posx="-159" posy="-20" posz="992" anglay="90"/>
		<CreateBasePart type="4" posx="-207" posy="-20" posz="992" anglay="90"/>

		<CreateBasePart type="4" posx="257" posy="-30" posz="500" anglay="90"/>
		<CreateBasePart type="4" posx="199" posy="-30" posz="500" anglay="90"/>
		<CreateBasePart type="4" posx="141" posy="-30" posz="500" anglay="90"/>
		<CreateBasePart type="4" posx="83" posy="-30" posz="500" anglay="90"/>
		<CreateBasePart type="14" posx="40" posy="-30" posz="500"/>

		<CreateBasePart type="4" posx="-229" posy="-30" posz="600" anglay="90"/>
		<CreateBasePart type="4" posx="-171" posy="-30" posz="600" anglay="90"/>
		<CreateBasePart type="4" posx="-113" posy="-30" posz="600" anglay="90"/>
		<CreateBasePart type="15" posx="-70" posy="-30" posz="600"/>

		<CreateBasePart type="4" posx="239" posy="-30" posz="750" anglay="90"/>
		<CreateBasePart type="4" posx="181" posy="-30" posz="750" anglay="90"/>
		<CreateBasePart type="4" posx="123" posy="-30" posz="750" anglay="90"/>
		<CreateBasePart type="11" posx="80" posy="-30" posz="750"/>

		<CreateBasePart type="4" posx="-219" posy="-30" posz="850" anglay="90"/>
		<CreateBasePart type="4" posx="-161" posy="-30" posz="850" anglay="90"/>
		<CreateBasePart type="4" posx="-103" posy="-30" posz="850" anglay="90"/>
		<CreateBasePart type="12" posx="-60" posy="-30" posz="850"/>


		<CreateBasePart type="5" posx="50" posy="-6" posz="300"/>
		<CreateBasePart type="5" posx="50" posy="-6" posz="360"/>
		<CreateBasePart type="5" posx="50" posy="-6" posz="420"/>
		<CreateBasePart type="5" posx="50" posy="-6" posz="480"/>
		<CreateBasePart type="5" posx="80" posy="-6" posz="360" angly="-90"/>
		<CreateBasePart type="5" posx="140" posy="-6" posz="360" angly="-90"/>

		<CreateBasePart type="5" posx="50" posy="-6" posz="600"/>
		<CreateBasePart type="5" posx="50" posy="-6" posz="660"/>
		<CreateBasePart type="5" posx="80" posy="-6" posz="660" angly="-90"/>
		<CreateBasePart type="5" posx="140" posy="-6" posz="660" angly="-90"/>
		<CreateBasePart type="5" posx="50" posy="-6" posz="720"/>
		<CreateBasePart type="5" posx="50" posy="-6" posz="780"/>
		<CreateBasePart type="5" posx="50" posy="-6" posz="840"/>
		<CreateBasePart type="5" posx="50" posy="-6" posz="900"/>
		<CreateBasePart type="5" posx="19.3" posy="-6" posz="900" angly="-90"/>
		<CreateBasePart type="5" posx="80" posy="-6" posz="900" angly="-90"/>
		<CreateBasePart type="5" posx="140" posy="-6" posz="900" angly="-90"/>

		<CreateBasePart type="5" posx="-80" posy="-6" posz="400"/>
		<CreateBasePart type="5" posx="-80" posy="-6" posz="460"/>
		<CreateBasePart type="5" posx="-80" posy="-6" posz="520"/>
		<CreateBasePart type="5" posx="-80" posy="-6" posz="580"/>
		<CreateBasePart type="5" posx="-110" posy="-6" posz="460" angly="-90"/>
		<CreateBasePart type="5" posx="-170" posy="-6" posz="460" angly="-90"/>

		<CreateBasePart type="5" posx="-50" posy="-6" posz="600"/>
		<CreateBasePart type="5" posx="-50" posy="-6" posz="660"/>
		<CreateBasePart type="5" posx="-80" posy="-6" posz="660" angly="-90"/>
		<CreateBasePart type="5" posx="-140" posy="-6" posz="660" angly="-90"/>
		<CreateBasePart type="5" posx="-50" posy="-6" posz="720"/>
		<CreateBasePart type="5" posx="-50" posy="-6" posz="780"/>
		<CreateBasePart type="5" posx="-50" posy="-6" posz="840"/>
		<CreateBasePart type="5" posx="-50" posy="-6" posz="900"/>
		<CreateBasePart type="5" posx="-50" posy="-6" posz="960"/>
		<CreateBasePart type="5" posx="-80" posy="-6" posz="900" angly="-90"/>
		<CreateBasePart type="5" posx="-140" posy="-6" posz="900" angly="-90"/>

		<CreateMBuilding type="5" posx="0" posy="-20" posz="378" anglay="180">
			<TimeSheet time="14.0" fire="0" targeting="0"/>
			<TimeSheet time="2.0" fire="0" targeting="1"/>
			<TimeSheet time="-1.0" fire="1" targeting="1"/>
		</CreateMBuilding>
		<CreateMBuilding type="3" posx="40" posy="-30" posz="500" anglay="180">
			<TimeSheet time="24.0" fire="0" targeting="0"/>
			<TimeSheet time="2.0" fire="0" targeting="1"/>
			<TimeSheet time="-1.0" fire="1" targeting="1"/>
		</CreateMBuilding>
		<CreateMBuilding type="1" posx="-63" posy="-30" posz="600" anglay="180">
			<TimeSheet time="34.0" fire="0" targeting="0"/>
			<TimeSheet time="2.0" fire="0" targeting="1"/>
			<TimeSheet time="-1.0" fire="1" targeting="1"/>
		</CreateMBuilding>
		<CreateMBuilding type="2" posx="73" posy="-30" posz="750" anglay="180">
			<TimeSheet time="49.0" fire="0" targeting="0"/>
			<TimeSheet time="2.0" fire="0" targeting="1"/>
			<TimeSheet time="-1.0" fire="1" targeting="1"/>
		</CreateMBuilding>
		<CreateMBuilding type="3" posx="-60" posy="-30" posz="850" anglay="180">
			<TimeSheet time="59.0" fire="0" targeting="0"/>
			<TimeSheet time="2.0" fire="0" targeting="1"/>
			<TimeSheet time="-1.0" fire="1" targeting="1"/>
		</CreateMBuilding>
		<CreateMBuilding type="5" posx="0" posy="-20" posz="992" anglay="180">
			<TimeSheet time="75.0" fire="0" targeting="0"/>
			<TimeSheet time="2.0" fire="0" targeting="1"/>
			<TimeSheet time="-1.0" fire="1" targeting="1"/>
		</CreateMBuilding>
	</TimeLine>





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





	<TimeLine value="0.7">
		<CreateTracked type="12" speed="15" posx="-265" posy="-19.5" posz="288" anglay="-90">
			<TimeSheet time="11" speed="15"/>
			<TimeSheet time="1" speed="0.00001" roty="-45" rotacy="1.0"/>
			<TimeSheet time="1.0" targeting="1" speed="0.0001"/>
			<TimeSheet time="-1.0" fire="1" targeting="1" speed="0.0001"/>
		</CreateTracked>
		<CreateTracked type="10" speed="15" posx="265" posy="-19.5" posz="288" anglay="90">
			<TimeSheet time="11" speed="15"/>
			<TimeSheet time="1" speed="0.00001" roty="45" rotacy="1.0"/>
			<TimeSheet time="1.0" targeting="1" speed="0.0001"/>
			<TimeSheet time="-1.0" fire="1" targeting="1" speed="0.0001"/>
		</CreateTracked>
	</TimeLine>
	<TimeLine value="7">
		<CreateWheeled type="3" speed="15" posx="265" posy="-29.5" posz="335" anglay="90">
			<TimeSheet time="12" speed="15"/>
			<TimeSheet time="1" speed="0.00001" roty="45" rotacy="1.0"/>
			<TimeSheet time="1.0" targeting="1" speed="0.0001"/>
			<TimeSheet time="-1.0" fire="1" targeting="1" speed="0.0001"/>
		</CreateWheeled>
	</TimeLine>



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


	<TimeLine value="4">
		<CreateWheeled type="2" speed="15" posx="-265" posy="-29.5" posz="335" anglay="-90">
			<TimeSheet time="11" speed="15"/>
			<TimeSheet time="1" speed="0.00001" roty="-45" rotacy="1.0"/>
			<TimeSheet time="3.0" targeting="1" speed="0.0001"/>
			<TimeSheet time="-1.0" fire="1" targeting="1" speed="0.0001"/>
		</CreateWheeled>
	</TimeLine>


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

	<TimeLine value="0">
		<CreateTracked type="1" speed="15" posx="0" posy="-19.5" posz="300" anglay="180">
			<TimeSheet time="7" speed="15"/>
			<TimeSheet time="1.0" targeting="1" speed="0.0001"/>
			<TimeSheet time="-1.0" fire="1" targeting="1" speed="0.0001"/>
		</CreateTracked>
	</TimeLine>

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

	<TimeLine value="8.8">
		<CreateWheeled type="2" speed="15" posx="265" posy="-29.5" posz="335" anglay="90">
			<TimeSheet time="10" speed="15"/>
			<TimeSheet time="1" speed="0.00001" roty="45" rotacy="1.0"/>
			<TimeSheet time="2.0" targeting="1" speed="0.0001"/>
			<TimeSheet time="-1.0" fire="1" targeting="1" speed="0.0001"/>
		</CreateWheeled>
	</TimeLine>



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

	<TimeLine value="0">
		<CreateTracked type="1" speed="15" posx="0" posy="-19.5" posz="300" anglay="180">
			<TimeSheet time="7" speed="15"/>
			<TimeSheet time="1.0" targeting="1" speed="0.0001"/>
			<TimeSheet time="-1.0" fire="1" targeting="1" speed="0.0001"/>
		</CreateTracked>
	</TimeLine>

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

	<TimeLine value="4">
		<CreateWheeled type="3" speed="15" posx="-265" posy="-29.5" posz="335" anglay="-90">
			<TimeSheet time="11" speed="15"/>
			<TimeSheet time="1" speed="0.00001" roty="-45" rotacy="1.0"/>
			<TimeSheet time="2.0" targeting="1" speed="0.0001"/>
			<TimeSheet time="-1.0" fire="1" targeting="1" speed="0.0001"/>
		</CreateWheeled>
	</TimeLine>


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


	<TimeLine value="4">
		<CreateTracked type="1" speed="15" posx="0" posy="-19.5" posz="300" anglay="180">
			<TimeSheet time="7" speed="15"/>
			<TimeSheet time="1.0" targeting="1" speed="0.0001"/>
			<TimeSheet time="-1.0" fire="1" targeting="1" speed="0.0001"/>
		</CreateTracked>
	</TimeLine>


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


	<TimeLine value="2.7">
		<CreateTracked type="13" speed="15" posx="-265" posy="-19.5" posz="288" anglay="-90">
			<TimeSheet time="12" speed="15"/>
			<TimeSheet time="1" speed="0.00001" roty="-45" rotacy="1.0"/>
			<TimeSheet time="1.0" targeting="1" speed="0.0001"/>
			<TimeSheet time="-1.0" fire="1" targeting="1" speed="0.0001"/>
		</CreateTracked>
		<CreateTracked type="13" speed="15" posx="265" posy="-19.5" posz="288" anglay="90">
			<TimeSheet time="12" speed="15"/>
			<TimeSheet time="1" speed="0.00001" roty="45" rotacy="1.0"/>
			<TimeSheet time="1.0" targeting="1" speed="0.0001"/>
			<TimeSheet time="-1.0" fire="1" targeting="1" speed="0.0001"/>
		</CreateTracked>
	</TimeLine>


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
















	<!-- Second pirate raiders group -->


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

	<!--pirates big ship /-->
	<TimeLine value="1">
		<PirateShip type="8" speed="5" posx="-20" posy="-10" posz="320" angly="180">
			<TimeSheet time="2" speed="5"/>
			<TimeSheet time="4.0" targeting="1"/>
			<TimeSheet time="-1.0" fire="1" targeting="1"/>
		</PirateShip>
	</TimeLine>

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

	<!--pirates big ship /-->
	<TimeLine value="1">
		<PirateShip type="8" speed="5" posx="20" posy="-13" posz="320" angly="180">
			<TimeSheet time="2" speed="5"/>
			<TimeSheet time="4.0" targeting="1"/>
			<TimeSheet time="-1.0" fire="1" targeting="1"/>
		</PirateShip>
	</TimeLine>

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

	<!--pirates big ship /-->
	<TimeLine value="1">
		<PirateShip type="9" speed="5" posx="0" posy="-15" posz="320" angly="180">
			<TimeSheet time="2" speed="5"/>
			<TimeSheet time="4.0" targeting="1"/>
			<TimeSheet time="-1.0" fire="1" targeting="1"/>
		</PirateShip>
	</TimeLine>

	<!--2 pirate ships  /-->
	<TimeLine value="1">
		<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>














	<!-- base part, second base block /-->	
	<TimeLine>
		<CreateBasePart type="4" posx="0" posy="-30" posz="430" anglay="90"/>
		<CreateBasePart type="4" posx="86" posy="-30" posz="430" anglay="90"/>
		<CreateBasePart type="4" posx="-86" posy="-30" posz="430" anglay="90"/>
		<CreateBasePart type="4" posx="144" posy="-30" posz="430" anglay="90"/>
		<CreateBasePart type="4" posx="-144" posy="-30" posz="430" anglay="90"/>
		<CreateBasePart type="4" posx="202" posy="-30" posz="430" anglay="90"/>
		<CreateBasePart type="4" posx="-202" posy="-30" posz="430" anglay="90"/>
		<CreateBasePart type="4" posx="260" posy="-30" posz="430" anglay="90"/>
		<CreateBasePart type="4" posx="-260" posy="-30" posz="430" anglay="90"/>

		<CreateBasePart type="14" posx="-43" posy="-30" posz="430"/>
		<CreateBasePart type="13" posx="43" posy="-30" posz="430"/>
		<CreateBasePart type="4" posx="43" posy="-30" posz="473"/>
		<CreateBasePart type="4" posx="43" posy="-30" posz="531"/>
		<CreateBasePart type="4" posx="43" posy="-30" posz="589"/>
		<CreateBasePart type="4" posx="43" posy="-30" posz="647"/>
		<CreateBasePart type="4" posx="43" posy="-30" posz="705"/>
		<CreateBasePart type="4" posx="43" posy="-30" posz="763"/>
		<CreateBasePart type="4" posx="43" posy="-30" posz="821"/>
		<CreateBasePart type="4" posx="43" posy="-30" posz="879"/>
		<CreateBasePart type="4" posx="43" posy="-30" posz="937"/>
		<CreateBasePart type="4" posx="43" posy="-30" posz="995"/>
		<CreateBasePart type="4" posx="-43" posy="-30" posz="473"/>
		<CreateBasePart type="4" posx="-43" posy="-30" posz="531"/>
		<CreateBasePart type="4" posx="-43" posy="-30" posz="589"/>
		<CreateBasePart type="4" posx="-43" posy="-30" posz="647"/>
		<CreateBasePart type="4" posx="-43" posy="-30" posz="705"/>
		<CreateBasePart type="4" posx="-43" posy="-30" posz="763"/>
		<CreateBasePart type="4" posx="-43" posy="-30" posz="821"/>
		<CreateBasePart type="4" posx="-43" posy="-30" posz="879"/>
		<CreateBasePart type="4" posx="-43" posy="-30" posz="937"/>
		<CreateBasePart type="4" posx="-43" posy="-30" posz="995"/>
		<CreateBasePart type="4" posx="0" posy="-30" posz="1038" anglay="90"/>
		<CreateBasePart type="4" posx="86" posy="-30" posz="1038" anglay="90"/>
		<CreateBasePart type="4" posx="-86" posy="-30" posz="1038" anglay="90"/>
		<CreateBasePart type="4" posx="144" posy="-30" posz="1038" anglay="90"/>
		<CreateBasePart type="4" posx="-144" posy="-30" posz="1038" anglay="90"/>
		<CreateBasePart type="4" posx="202" posy="-30" posz="1038" anglay="90"/>
		<CreateBasePart type="4" posx="-202" posy="-30" posz="1038" anglay="90"/>
		<CreateBasePart type="4" posx="260" posy="-30" posz="1038" anglay="90"/>
		<CreateBasePart type="4" posx="-260" posy="-30" posz="1038" anglay="90"/>	
		<CreateBasePart type="12" posx="-43" posy="-30" posz="1038"/>
		<CreateBasePart type="11" posx="43" posy="-30" posz="1038"/>


		<CreateMBuilding type="5" posx="40" posy="-30" posz="424" anglay="180">
			<TimeSheet time="14.0" fire="0" targeting="0"/>
			<TimeSheet time="2.0" fire="0" targeting="1"/>
			<TimeSheet time="-1.0" fire="1" targeting="1"/>
		</CreateMBuilding>
		<CreateMBuilding type="5" posx="-40" posy="-30" posz="424" anglay="180">
			<TimeSheet time="14.0" fire="0" targeting="0"/>
			<TimeSheet time="2.0" fire="0" targeting="1"/>
			<TimeSheet time="-1.0" fire="1" targeting="1"/>
		</CreateMBuilding>

		<CreateMBuilding type="5" posx="40" posy="-30" posz="1038" anglay="180">
			<TimeSheet time="70.0" fire="0" targeting="0"/>
			<TimeSheet time="2.0" fire="0" targeting="1"/>
			<TimeSheet time="-1.0" fire="1" targeting="1"/>
		</CreateMBuilding>
		<CreateMBuilding type="5" posx="-40" posy="-30" posz="1038" anglay="180">
			<TimeSheet time="70.0" fire="0" targeting="0"/>
			<TimeSheet time="2.0" fire="0" targeting="1"/>
			<TimeSheet time="-1.0" fire="1" targeting="1"/>
		</CreateMBuilding>

	</TimeLine>




	<!--2 pirate ships  /-->
	<TimeLine value="1">
		<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>

	<!--pirates big ship /-->
	<TimeLine value="1">
		<PirateShip type="6" speed="5" posx="10" posy="-10" posz="320" angly="180">
			<TimeSheet time="2" speed="5"/>
			<TimeSheet time="4.0" targeting="1"/>
			<TimeSheet time="-1.0" fire="1" targeting="1"/>
		</PirateShip>
	</TimeLine>


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


	<TimeLine value="0.5">
		<CreateWheeled type="3" speed="15" posx="280" posy="-29.5" posz="345" anglay="90">
			<TimeSheet time="13.6" speed="15"/>
			<TimeSheet time="5.0" speed="10" roty="-90" rotacy="1"/>
			<TimeSheet time="5" speed="25"/>
			<TimeSheet time="1" speed="0.00001" roty="17" rotacy="0.45"/>
			<TimeSheet time="10.0" targeting="1" speed="0.0001"/>
			<TimeSheet time="-1.0" fire="1" targeting="1" speed="0.0001"/>
		</CreateWheeled>
	</TimeLine>
	<TimeLine value="1">
		<CreateWheeled type="3" speed="15" posx="280" posy="-29.5" posz="335" anglay="90">
			<TimeSheet time="13.4" speed="15"/>
			<TimeSheet time="5.0" speed="10" roty="-90" rotacy="1"/>
			<TimeSheet time="2" speed="25"/>
			<TimeSheet time="1" speed="0.00001" roty="20" rotacy="0.45"/>
			<TimeSheet time="7.5" targeting="1" speed="0.0001"/>
			<TimeSheet time="-1.0" fire="1" targeting="1" speed="0.0001"/>
		</CreateWheeled>
	</TimeLine>

	<TimeLine value="0.5">
		<CreateWheeled type="3" speed="15" posx="-280" posy="-29.5" posz="330" anglay="-90">
			<TimeSheet time="13.6" speed="15"/>
			<TimeSheet time="5.0" speed="10" roty="90" rotacy="1"/>
			<TimeSheet time="7" speed="25"/>
			<TimeSheet time="1" speed="0.00001" roty="-17" rotacy="0.45"/>
			<TimeSheet time="7.0" targeting="1" speed="0.0001"/>
			<TimeSheet time="-1.0" fire="1" targeting="1" speed="0.0001"/>
		</CreateWheeled>
	</TimeLine>


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

	<TimeLine value="1">
		<CreateWheeled type="3" speed="15" posx="-280" posy="-29.5" posz="320" anglay="-90">
			<TimeSheet time="13.4" speed="15"/>
			<TimeSheet time="5.0" speed="10" roty="90" rotacy="1"/>
			<TimeSheet time="3" speed="25"/>
			<TimeSheet time="1" speed="0.00001" roty="-20" rotacy="0.45"/>
			<TimeSheet time="5.5" targeting="1" speed="0.0001"/>
			<TimeSheet time="-1.0" fire="1" targeting="1" speed="0.0001"/>
		</CreateWheeled>
	</TimeLine>


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



	<!--pirates big ship /-->
	<TimeLine value="3">
		<PirateShip type="6" speed="5" posx="10" posy="-10" posz="320" angly="180">
			<TimeSheet time="2" speed="5"/>
			<TimeSheet time="4.0" targeting="1"/>
			<TimeSheet time="-1.0" fire="1" targeting="1"/>
		</PirateShip>
	</TimeLine>

	<!--pirates big ship /-->
	<TimeLine value="6">
		<PirateShip type="6" speed="5" posx="-10" posy="-10" posz="340" angly="180">
			<TimeSheet time="2" speed="5"/>
			<TimeSheet time="4.0" targeting="1"/>
			<TimeSheet time="-1.0" fire="1" targeting="1"/>
		</PirateShip>
	</TimeLine>


	<TimeLine value="1">
		<PirateShip type="2" aimode="141" acceler="0.3" posx="40" posy="-3" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<PirateShip type="2" aimode="141" acceler="0.3" posx="50" posy="-3" posz="300" angly="180"/>
	</TimeLine>


	<TimeLine value="10">
		<PirateShip type="2" aimode="141" acceler="0.3" posx="-50" posy="-3" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<PirateShip type="2" aimode="141" acceler="0.3" posx="-40" posy="-3" posz="300" angly="180"/>
	</TimeLine>


	<TimeLine value="0">
		<CreateTracked type="1" speed="15" posx="43" posy="-29.5" posz="400" anglay="180">
			<TimeSheet time="7" speed="15"/>
			<TimeSheet time="1.0" targeting="1" speed="0.0001"/>
			<TimeSheet time="-1.0" fire="1" targeting="1" speed="0.0001"/>
		</CreateTracked>
	</TimeLine>



	<TimeLine value="6">
		<CreateTracked type="1" speed="15" posx="-43" posy="-29.5" posz="400" anglay="180">
			<TimeSheet time="7" speed="15"/>
			<TimeSheet time="1.0" targeting="1" speed="0.0001"/>
			<TimeSheet time="-1.0" fire="1" targeting="1" speed="0.0001"/>
		</CreateTracked>
	</TimeLine>


	<!--pirates big ship /-->
	<TimeLine value="2">
		<PirateShip type="9" speed="5" posx="0" posy="-15" posz="320" angly="180">
			<TimeSheet time="2" speed="5"/>
			<TimeSheet time="4.0" targeting="1"/>
			<TimeSheet time="-1.0" fire="1" targeting="1"/>
		</PirateShip>
	</TimeLine>



	<TimeLine value="1">
		<PirateShip type="2" aimode="141" acceler="0.3" posx="-5" posy="-3" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<PirateShip type="2" aimode="141" acceler="0.3" posx="5" posy="-3" posz="300" angly="180"/>
	</TimeLine>


	<TimeLine value="2">
		<CreateTracked type="1" speed="15" posx="43" posy="-29.5" posz="400" anglay="180">
			<TimeSheet time="7" speed="15"/>
			<TimeSheet time="1.0" targeting="1" speed="0.0001"/>
			<TimeSheet time="-1.0" fire="1" targeting="1" speed="0.0001"/>
		</CreateTracked>
	</TimeLine>


	<TimeLine value="6">
		<CreateTracked type="1" speed="15" posx="-43" posy="-29.5" posz="400" anglay="180">
			<TimeSheet time="7" speed="15"/>
			<TimeSheet time="1.0" targeting="1" speed="0.0001"/>
			<TimeSheet time="-1.0" fire="1" targeting="1" speed="0.0001"/>
		</CreateTracked>
	</TimeLine>


	<!--pirates big ship /-->
	<TimeLine value="2">
		<PirateShip type="9" speed="5" posx="0" posy="-15" posz="320" angly="180">
			<TimeSheet time="2" speed="5"/>
			<TimeSheet time="4.0" targeting="1"/>
			<TimeSheet time="-1.0" fire="1" targeting="1"/>
		</PirateShip>
	</TimeLine>


	<TimeLine value="1">
		<PirateShip type="2" aimode="141" acceler="0.3" posx="40" posy="-3" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<PirateShip type="2" aimode="141" acceler="0.3" posx="50" posy="-3" posz="300" angly="180"/>
	</TimeLine>




	<!--pirates big ship /-->
	<TimeLine value="10">
		<PirateShip type="8" speed="5" posx="-20" posy="-10" posz="320" angly="180">
			<TimeSheet time="2" speed="5"/>
			<TimeSheet time="4.0" targeting="1"/>
			<TimeSheet time="-1.0" fire="1" targeting="1"/>
		</PirateShip>
	</TimeLine>



	<TimeLine value="1">
		<PirateShip type="2" aimode="141" acceler="0.3" posx="-50" posy="-3" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<PirateShip type="2" aimode="141" acceler="0.3" posx="-40" posy="-3" posz="300" angly="180"/>
	</TimeLine>


	<!--pirates big ship /-->
	<TimeLine value="6">
		<PirateShip type="8" speed="5" posx="20" posy="-10" posz="320" angly="180">
			<TimeSheet time="2" speed="5"/>
			<TimeSheet time="4.0" targeting="1"/>
			<TimeSheet time="-1.0" fire="1" targeting="1"/>
		</PirateShip>
	</TimeLine>



	<TimeLine value="4">
		<PirateShip type="2" aimode="141" acceler="0.3" posx="-5" posy="-3" posz="300" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<PirateShip type="2" aimode="141" acceler="0.3" posx="5" posy="-3" posz="300" angly="180"/>
	</TimeLine>






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



	<TimeLine value="25"/>



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

</Action>
</AstroMenaceScript>
