<?xml version="1.0" encoding="UTF-8"?>

<PropertyList>

<path>KOAK_hangar.ac</path>

 <nasal>
  <load>
   if (!contains(globals, "scenery")) globals["scenery"] = {};
   if (!contains(scenery, "KOAK")) scenery["KOAK"] = {};
   if (!contains(scenery.KOAK, "hangar")) scenery.KOAK["hangar"] = {};
   if (contains(scenery, "sharedDoor")) {
     scenery.KOAK.hangar[0] =
       { door :
         [scenery.sharedDoor.new("/scenery/KOAK/hangar[0]/door[0]", 25),
          scenery.sharedDoor.new("/scenery/KOAK/hangar[0]/door[1]", 25)
         ]
       };
   } else {
     scenery.KOAK.hangar[0] =
       { door :
         [aircraft.door.new("/scenery/KOAK/hangar[0]/door[0]", 25),
          aircraft.door.new("/scenery/KOAK/hangar[0]/door[1]", 25)
         ]
       };
   }
  </load>
  <unload>
   if (contains(scenery, "sharedDoor")) {
     scenery.KOAK.hangar[0].door[0].destroy();
     scenery.KOAK.hangar[0].door[1].destroy();
   }
  </unload>
 </nasal>

<animation>
 <type>pick</type>
 <object-name>door1</object-name>
 <object-name>door2</object-name>
 <object-name>door3</object-name>
 <object-name>door4</object-name>
 <visible>true</visible>
 <action>
  <name>click</name>
  <button>0</button>
  <repeatable>false</repeatable>
  <binding>
   <command>nasal</command>
   <script>scenery.KOAK.hangar[0].door[0].toggle();</script>
  </binding>
 </action>
</animation>

<animation>
 <type>translate</type>
 <object-name>door1</object-name>
 <property>/scenery/KOAK/hangar[0]/door[0]/position-norm</property>
 <factor>44</factor>
 <axis>
  <x>0</x>
  <y>1</y>
  <z>0</z>
 </axis>
</animation>

<animation>
 <type>translate</type>
 <object-name>door2</object-name>
 <property>/scenery/KOAK/hangar[0]/door[0]/position-norm</property>
 <factor>44</factor>
 <axis>
  <x>0</x>
  <y>-1</y>
  <z>0</z>
 </axis>
</animation>

<animation>
 <type>translate</type>
 <object-name>door3</object-name>
 <property>/scenery/KOAK/hangar[0]/door[0]/position-norm</property>
 <factor>22</factor>
 <axis>
  <x>0</x>
  <y>1</y>
  <z>0</z>
 </axis>
</animation>

<animation>
 <type>translate</type>
 <object-name>door4</object-name>
 <property>/scenery/KOAK/hangar[0]/door[0]/position-norm</property>
 <factor>22</factor>
 <axis>
  <x>0</x>
  <y>-1</y>
  <z>0</z>
 </axis>
</animation>

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

<animation>
 <type>translate</type>
 <object-name>door5</object-name>
 <property>/scenery/KOAK/hangar[0]/door[1]/position-norm</property>
 <factor>44</factor>
 <axis>
  <x>0</x>
  <y>1</y>
  <z>0</z>
 </axis>
</animation>

<animation>
 <type>translate</type>
 <object-name>door6</object-name>
 <property>/scenery/KOAK/hangar[0]/door[1]/position-norm</property>
 <factor>44</factor>
 <axis>
  <x>0</x>
  <y>-1</y>
  <z>0</z>
 </axis>
</animation>

<animation>
 <type>translate</type>
 <object-name>door7</object-name>
 <property>/scenery/KOAK/hangar[0]/door[1]/position-norm</property>
 <factor>22</factor>
 <axis>
  <x>0</x>
  <y>1</y>
  <z>0</z>
 </axis>
</animation>

<animation>
 <type>translate</type>
 <object-name>door8</object-name>
 <property>/scenery/KOAK/hangar[0]/door[1]/position-norm</property>
 <factor>22</factor>
 <axis>
  <x>0</x>
  <y>-1</y>
  <z>0</z>
 </axis>
</animation>

    <animation>
	<type>select</type>
	<object-name>RedSpot.001</object-name>
	<object-name>RedSpot.002</object-name>
	<object-name>RedSpot.003</object-name>
	<object-name>RedSpot.004</object-name>
	<condition>
	    <greater-than>
		<property>/sim/time/sun-angle-rad</property>
		<value>1.57</value>
	    </greater-than>
	</condition>
    </animation>

    <animation>
	<type>alpha-test</type>
	<object-name>RedSpot.001</object-name>
	<object-name>RedSpot.002</object-name>
	<object-name>RedSpot.003</object-name>
	<object-name>RedSpot.004</object-name>
    </animation>

    <animation>
	<type>noshadow</type>
	<object-name>RedSpot.001</object-name>
	<object-name>RedSpot.002</object-name>
	<object-name>RedSpot.003</object-name>
	<object-name>RedSpot.004</object-name>
    </animation>

    <animation>
	<type>translate</type>
	<object-name>RedSpot.001</object-name>
	<offset-m>93.28</offset-m>
	<axis>
	    <x>-55.155</x>
	    <y>-63.602</y>
	    <z>40.172</z>
	</axis>
    </animation>
    <animation>
	<type>translate</type>
	<object-name>RedSpot.004</object-name>
	<offset-m>92.387</offset-m>
	<axis>
	    <x>-55.155</x>
	    <y>62.285</y>
	    <z>40.172</z>
	</axis>
    </animation>
    <animation>
	<type>translate</type>
	<object-name>RedSpot.002</object-name>
	<offset-m>92.513</offset-m>
	<axis>
	    <x>55.366</x>
	    <y>62.285</y>
	    <z>40.172</z>
	</axis>
    </animation>
    <animation>
	<type>translate</type>
	<object-name>RedSpot.003</object-name>
	<offset-m>91.68</offset-m>
	<axis>
	    <x>55.366</x>
	    <y>-61.041</y>
	    <z>40.172</z>
	</axis>
    </animation>

    <animation>
	<type>billboard</type>
	<object-name>RedSpot.001</object-name>
	<object-name>RedSpot.002</object-name>
	<object-name>RedSpot.003</object-name>
	<object-name>RedSpot.004</object-name>
    </animation>

    <animation>
	<type>dist-scale</type>
	<object-name>RedSpot.001</object-name>
	<object-name>RedSpot.002</object-name>
	<object-name>RedSpot.003</object-name>
	<object-name>RedSpot.004</object-name>
	<interpolation>
	    <entry>
		<ind>0</ind>
		<dep>0.4</dep>
	    </entry>
	    <entry>
		<ind>500</ind>
		<dep>0.8</dep>
	    </entry>
	    <entry>
		<ind>16000</ind>
		<dep>10</dep>
	    </entry>
	</interpolation>
    </animation>

</PropertyList>

	
 
