<?xml version="1.0"?>

<PropertyList>

	<path>kntk-hangar.ac</path>

 <nasal>
  <load>
   print("LOAD kntk-hangar-2.xml");
   if (!contains(globals, "scenery")) globals["scenery"] = {};
   if (!contains(scenery, "KNTK")) scenery["KNTK"] = {};
   if (!contains(scenery.KNTK, "hangar")) scenery.KNTK["hangar"] = {};
   if (contains(scenery, "sharedDoor")) {
     scenery.KNTK.hangar[1] =
       { door :
         [scenery.sharedDoor.new("/scenery/KNTK/hangar[1]/door[0]", 3*60),
          scenery.sharedDoor.new("/scenery/KNTK/hangar[1]/door[1]", 3*60)
         ]
       };
   } else {
     scenery.KNTK.hangar[1] =
       { door :
         [aircraft.door.new("/scenery/KNTK/hangar[1]/door[0]", 3*60),
          aircraft.door.new("/scenery/KNTK/hangar[1]/door[1]", 3*60)
         ]
       };
   }
  </load>
  <unload>
   if (contains(scenery, "sharedDoor")) {
     scenery.KNTK.hangar[1].door[0].destroy();
     scenery.KNTK.hangar[1].door[1].destroy();
   }
  </unload>
 </nasal>

 <animation>
  <type>translate</type>
  <object-name>door-N1</object-name>
  <property>/scenery/KNTK/hangar[1]/door[0]/position-norm</property>
  <interpolation>
   <entry><ind>0</ind><dep>0.0</dep></entry>
   <entry><ind>1.0</ind><dep>10.0</dep></entry>
  </interpolation>
  <axis>
   <x>0</x>
   <y>1</y>
   <z>0</z>
  </axis>
 </animation>
 <animation>
  <type>translate</type>
  <object-name>door-N2</object-name>
  <property>/scenery/KNTK/hangar[1]/door[0]/position-norm</property>
  <interpolation>
   <entry><ind>0</ind><dep>0.0</dep></entry>
   <entry><ind>1.0</ind><dep>21.5</dep></entry>
  </interpolation>
  <axis>
   <x>0</x>
   <y>1</y>
   <z>0</z>
  </axis>
 </animation>
 <animation>
  <type>translate</type>
  <object-name>door-N3</object-name>
  <property>/scenery/KNTK/hangar[1]/door[0]/position-norm</property>
  <interpolation>
   <entry><ind>0</ind><dep>0.0</dep></entry>
   <entry><ind>1.0</ind><dep>33.5</dep></entry>
  </interpolation>
  <axis>
   <x>0</x>
   <y>1</y>
   <z>0</z>
  </axis>
 </animation>
 <animation>
  <type>translate</type>
  <object-name>door-N4</object-name>
  <property>/scenery/KNTK/hangar[1]/door[0]/position-norm</property>
  <interpolation>
   <entry><ind>0</ind><dep>27.25</dep></entry>
   <entry><ind>1.0</ind><dep>-6.00</dep></entry>
  </interpolation>
  <axis>
   <x>0</x>
   <y>1</y>
   <z>0</z>
  </axis>
 </animation>
 <animation>
  <type>translate</type>
  <object-name>door-N5</object-name>
  <property>/scenery/KNTK/hangar[1]/door[0]/position-norm</property>
  <interpolation>
   <entry><ind>0</ind><dep>17.25</dep></entry>
   <entry><ind>1.0</ind><dep>-4.25</dep></entry>
  </interpolation>
  <axis>
   <x>0</x>
   <y>1</y>
   <z>0</z>
  </axis>
 </animation>
 <animation>
  <type>translate</type>
  <object-name>door-N6</object-name>
  <property>/scenery/KNTK/hangar[1]/door[0]/position-norm</property>
  <interpolation>
   <entry><ind>0</ind><dep>9.00</dep></entry>
   <entry><ind>1.0</ind><dep>-1.00</dep></entry>
  </interpolation>
  <axis>
   <x>0</x>
   <y>1</y>
   <z>0</z>
  </axis>
 </animation>

 <animation>
  <type>pick</type>
  <object-name>door-N3</object-name>
  <object-name>door-N4</object-name>
  <visible>true</visible>
  <action>
   <name>click</name>
   <button>0</button>
   <repeatable>false</repeatable>
   <binding>
    <command>nasal</command>
    <script>scenery.KNTK.hangar[1].door[0].toggle();</script>
   </binding>
  </action>
 </animation>

 <animation>
  <type>translate</type>
  <object-name>door-S1</object-name>
  <property>/scenery/KNTK/hangar[1]/door[1]/position-norm</property>
  <interpolation>
   <entry><ind>0</ind><dep>0.0</dep></entry>
   <entry><ind>1.0</ind><dep>-10.0</dep></entry>
  </interpolation>
  <axis>
   <x>0</x>
   <y>1</y>
   <z>0</z>
  </axis>
 </animation>
 <animation>
  <type>translate</type>
  <object-name>door-S2</object-name>
  <property>/scenery/KNTK/hangar[1]/door[1]/position-norm</property>
  <interpolation>
   <entry><ind>0</ind><dep>0.0</dep></entry>
   <entry><ind>1.0</ind><dep>-21.5</dep></entry>
  </interpolation>
  <axis>
   <x>0</x>
   <y>1</y>
   <z>0</z>
  </axis>
 </animation>
 <animation>
  <type>translate</type>
  <object-name>door-S3</object-name>
  <property>/scenery/KNTK/hangar[1]/door[1]/position-norm</property>
  <interpolation>
   <entry><ind>0</ind><dep>0.0</dep></entry>
   <entry><ind>1.0</ind><dep>-33.5</dep></entry>
  </interpolation>
  <axis>
   <x>0</x>
   <y>1</y>
   <z>0</z>
  </axis>
 </animation>
 <animation>
  <type>translate</type>
  <object-name>door-S4</object-name>
  <property>/scenery/KNTK/hangar[1]/door[1]/position-norm</property>
  <interpolation>
   <entry><ind>0</ind><dep>-27.50</dep></entry>
   <entry><ind>1.0</ind><dep>6.00</dep></entry>
  </interpolation>
  <axis>
   <x>0</x>
   <y>1</y>
   <z>0</z>
  </axis>
 </animation>
 <animation>
  <type>translate</type>
  <object-name>door-S5</object-name>
  <property>/scenery/KNTK/hangar[1]/door[1]/position-norm</property>
  <interpolation>
   <entry><ind>0</ind><dep>-18.0</dep></entry>
   <entry><ind>1.0</ind><dep>3.50</dep></entry>
  </interpolation>
  <axis>
   <x>0</x>
   <y>1</y>
   <z>0</z>
  </axis>
 </animation>
 <animation>
  <type>translate</type>
  <object-name>door-S6</object-name>
  <property>/scenery/KNTK/hangar[1]/door[1]/position-norm</property>
  <interpolation>
   <entry><ind>0</ind><dep>-9.50</dep></entry>
   <entry><ind>1.0</ind><dep>0.50</dep></entry>
  </interpolation>
  <axis>
   <x>0</x>
   <y>1</y>
   <z>0</z>
  </axis>
 </animation>

 <animation>
  <type>pick</type>
  <object-name>door-S3</object-name>
  <object-name>door-S4</object-name>
  <visible>true</visible>
  <action>
   <name>click</name>
   <button>0</button>
   <repeatable>false</repeatable>
   <binding>
    <command>nasal</command>
    <script>scenery.KNTK.hangar[1].door[1].toggle();</script>
   </binding>
  </action>
 </animation>

	<animation>
		<type>select</type>
		<object-name>red-light-1</object-name>
		<condition>
			<greater-than>
				<property>/sim/time/sun-angle-rad</property>
				<value>1.56</value>
			</greater-than>
		</condition>
	</animation>
	<animation>
		<type>translate</type>
		<object-name>red-light-1</object-name>
		<offset-m>178.4020</offset-m>
		<axis>
			<x>161.9300</x>
			<y>-45.4500</y>
			<z>59.5000</z>
		</axis>
	</animation>
	<animation>
		<type>billboard</type>
		<object-name>red-light-1</object-name>
		<spherical type="bool">true</spherical>
	</animation>
	<animation>
		<type>dist-scale</type>
		<object-name>red-light-1</object-name>
		<interpolation>
			<entry><ind>0</ind><dep>0.1</dep></entry>
			<entry><ind>500</ind><dep>0.2</dep></entry>
			<entry><ind>16000</ind><dep>3</dep></entry>
		</interpolation>
	</animation>

	<animation>
		<type>select</type>
		<object-name>red-light-2</object-name>
		<condition>
			<greater-than>
				<property>/sim/time/sun-angle-rad</property>
				<value>1.56</value>
			</greater-than>
		</condition>
	</animation>
	<animation>
		<type>translate</type>
		<object-name>red-light-2</object-name>
		<offset-m>178.4746</offset-m>
		<axis>
			<x>-162.0100</x>
			<y>-45.4500</y>
			<z>59.5000</z>
		</axis>
	</animation>
	<animation>
		<type>billboard</type>
		<object-name>red-light-2</object-name>
		<spherical type="bool">true</spherical>
	</animation>
	<animation>
		<type>dist-scale</type>
		<object-name>red-light-2</object-name>
		<interpolation>
			<entry><ind>0</ind><dep>0.1</dep></entry>
			<entry><ind>500</ind><dep>0.2</dep></entry>
			<entry><ind>16000</ind><dep>3</dep></entry>
		</interpolation>
	</animation>

	<animation>
		<type>select</type>
		<object-name>red-light-3</object-name>
		<condition>
			<greater-than>
				<property>/sim/time/sun-angle-rad</property>
				<value>1.56</value>
			</greater-than>
		</condition>
	</animation>
	<animation>
		<type>translate</type>
		<object-name>red-light-3</object-name>
		<offset-m>178.4746</offset-m>
		<axis>
			<x>-162.0100</x>
			<y>45.4500</y>
			<z>59.5000</z>
		</axis>
	</animation>
	<animation>
		<type>billboard</type>
		<object-name>red-light-3</object-name>
		<spherical type="bool">true</spherical>
	</animation>
	<animation>
		<type>dist-scale</type>
		<object-name>red-light-3</object-name>
		<interpolation>
			<entry><ind>0</ind><dep>0.1</dep></entry>
			<entry><ind>500</ind><dep>0.2</dep></entry>
			<entry><ind>16000</ind><dep>3</dep></entry>
		</interpolation>
	</animation>

	<animation>
		<type>select</type>
		<object-name>red-light-4</object-name>
		<condition>
			<greater-than>
				<property>/sim/time/sun-angle-rad</property>
				<value>1.56</value>
			</greater-than>
		</condition>
	</animation>
	<animation>
		<type>translate</type>
		<object-name>red-light-4</object-name>
		<offset-m>178.4020</offset-m>
		<axis>
			<x>161.9300</x>
			<y>45.4500</y>
			<z>59.5000</z>
		</axis>
	</animation>
	<animation>
		<type>billboard</type>
		<object-name>red-light-4</object-name>
		<spherical type="bool">true</spherical>
	</animation>
	<animation>
		<type>dist-scale</type>
		<object-name>red-light-4</object-name>
		<interpolation>
			<entry><ind>0</ind><dep>0.1</dep></entry>
			<entry><ind>500</ind><dep>0.2</dep></entry>
			<entry><ind>16000</ind><dep>3</dep></entry>
		</interpolation>
	</animation>

	<animation>
		<type>select</type>
		<object-name>red-light-5</object-name>
		<condition>
			<greater-than>
				<property>/sim/time/sun-angle-rad</property>
				<value>1.56</value>
			</greater-than>
		</condition>
	</animation>
	<animation>
		<type>translate</type>
		<object-name>red-light-5</object-name>
		<offset-m>169.9733</offset-m>
		<axis>
			<x>154.1100</x>
			<y>0.3800</y>
			<z>71.7000</z>
		</axis>
	</animation>
	<animation>
		<type>billboard</type>
		<object-name>red-light-5</object-name>
		<spherical type="bool">true</spherical>
	</animation>
	<animation>
		<type>dist-scale</type>
		<object-name>red-light-5</object-name>
		<interpolation>
			<entry><ind>0</ind><dep>0.1</dep></entry>
			<entry><ind>500</ind><dep>0.2</dep></entry>
			<entry><ind>16000</ind><dep>3</dep></entry>
		</interpolation>
	</animation>

	<animation>
		<type>select</type>
		<object-name>red-light-6</object-name>
		<condition>
			<greater-than>
				<property>/sim/time/sun-angle-rad</property>
				<value>1.56</value>
			</greater-than>
		</condition>
	</animation>
	<animation>
		<type>translate</type>
		<object-name>red-light-6</object-name>
		<offset-m>71.7094</offset-m>
		<axis>
			<x>-1.1000</x>
			<y>0.3800</y>
			<z>71.7000</z>
		</axis>
	</animation>
	<animation>
		<type>billboard</type>
		<object-name>red-light-6</object-name>
		<spherical type="bool">true</spherical>
	</animation>
	<animation>
		<type>dist-scale</type>
		<object-name>red-light-6</object-name>
		<interpolation>
			<entry><ind>0</ind><dep>0.1</dep></entry>
			<entry><ind>500</ind><dep>0.2</dep></entry>
			<entry><ind>16000</ind><dep>3</dep></entry>
		</interpolation>
	</animation>

	<animation>
		<type>select</type>
		<object-name>red-light-7</object-name>
		<condition>
			<greater-than>
				<property>/sim/time/sun-angle-rad</property>
				<value>1.56</value>
			</greater-than>
		</condition>
	</animation>
	<animation>
		<type>translate</type>
		<object-name>red-light-7</object-name>
		<offset-m>169.1315</offset-m>
		<axis>
			<x>-153.17</x>
			<y>0.3800</y>
			<z>71.7000</z>
		</axis>
	</animation>
	<animation>
		<type>billboard</type>
		<object-name>red-light-7</object-name>
		<spherical type="bool">true</spherical>
	</animation>
	<animation>
		<type>dist-scale</type>
		<object-name>red-light-7</object-name>
		<interpolation>
			<entry><ind>0</ind><dep>0.1</dep></entry>
			<entry><ind>500</ind><dep>0.2</dep></entry>
			<entry><ind>16000</ind><dep>3</dep></entry>
		</interpolation>
	</animation>


	<animation>
		<type>range</type>
		<object-name>h3</object-name>
		<min-m>0</min-m>
		<max-m>0.0001</max-m>
	</animation>

	<animation>
		<type>range</type>
		<object-name>hangar</object-name>
		<min-m>0</min-m>
		<max-m>26000</max-m>
	</animation>
	<animation>
		<type>range</type>
		<object-name>h2</object-name>
		<min-m>0</min-m>
		<max-m>26000</max-m>
	</animation>

</PropertyList>
