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

<PropertyList>

	<!-- EDDS Lufthansa Technik Hangar -->
	<!-- Note: rotated by -0.7 deg at world origin / center -->
	<!-- (c) 2021-06-03 by Stefan Frank   -->

	<path>EDDS_Hangar_LHT.ac</path>

<!--  night redlight  -->
<animation>
  <type>material</type>
  <object-name>redlight</object-name>
  <condition>		
    <greater-than>		
      <property>/sim/time/sun-angle-rad</property>
      <value>1.49</value>
    </greater-than>
  </condition>
  <emission>	
    <red>1.0</red>	
    <green>0.0</green>	
    <blue>0.0</blue>
  </emission>
</animation>

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

</nasal>

  <animation>
    <type>alpha-test</type>
    <alpha-factor>0.01</alpha-factor>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>Tor_1</object-name>
    <object-name>Tor_2</object-name>
    <object-name>Tor_3</object-name>
    <object-name>Tor_4</object-name>
    <object-name>Tor_5</object-name>
    <object-name>Tor_6</object-name>
    <visible>true</visible>

    <action>
      <name>click</name>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>nasal</command>
        <script>scenery.EDDS.Hangar_LHT[0].door[0].toggle();</script>
      </binding>
    </action>
  </animation>
 
  <animation>
    <type>translate</type>
    <object-name>Tor_3</object-name>
  
    <property>/scenery/EDDS/Hangar_LHT[0]/door[0]/position-norm</property>
    <factor>1</factor>
    <interpolation>
      <entry><ind> 0.00 </ind><dep>  0.00 </dep></entry>
      <entry><ind> 0.33 </ind><dep> -7.30 </dep></entry>
    </interpolation>
    <axis>
      <object-name>Tor_Y_Achse</object-name>
    </axis>
  </animation>
  <animation>
   <type>translate</type>
   <object-name>Tor_4</object-name>
 
   <property>/scenery/EDDS/Hangar_LHT[0]/door[0]/position-norm</property>
   <factor>1</factor>
   <interpolation>
     <entry><ind> 0.00 </ind><dep>   0.00 </dep></entry>
     <entry><ind> 0.33 </ind><dep> 10.80 </dep></entry>
   </interpolation>
   <axis>
     <object-name>Tor_Y_Achse</object-name>
   </axis>
  </animation>
 
  <animation>
    <type>translate</type>
    <object-name>Tor_3</object-name>
    <object-name>Tor_2</object-name>
  
    <property>/scenery/EDDS/Hangar_LHT[0]/door[0]/position-norm</property>
    <factor>1</factor>
    <interpolation>
      <entry><ind> 0.33 </ind><dep>  0.00 </dep></entry>
      <entry><ind> 0.66 </ind><dep> -10.80 </dep></entry>
    </interpolation>
    <axis>
      <object-name>Tor_Y_Achse</object-name>
    </axis>
  </animation>
  <animation>
    <type>translate</type>
    <object-name>Tor_4</object-name>
    <object-name>Tor_5</object-name>
  
    <property>/scenery/EDDS/Hangar_LHT[0]/door[0]/position-norm</property>
    <factor>1</factor>
    <interpolation>
      <entry><ind> 0.33 </ind><dep>   0.00 </dep></entry>
      <entry><ind> 0.66 </ind><dep> 10.80 </dep></entry>
    </interpolation>
    <axis>
      <object-name>Tor_Y_Achse</object-name>
    </axis>
  </animation>
  
  <animation>
   <type>translate</type>
   <object-name>Tor_3</object-name>
   <object-name>Tor_2</object-name>
   <object-name>Tor_1</object-name>
 
   <property>/scenery/EDDS/Hangar_LHT[0]/door[0]/position-norm</property>
   <factor>1</factor>
   <interpolation>
     <entry><ind> 0.66 </ind><dep>  0.00 </dep></entry>
     <entry><ind> 1.00 </ind><dep>  -9.60 </dep></entry>
   </interpolation>
   <axis>
     <object-name>Tor_Y_Achse</object-name>
   </axis>
  </animation>
  <animation>
    <type>translate</type>
    <object-name>Tor_4</object-name>
    <object-name>Tor_5</object-name>
    <object-name>Tor_6</object-name>
  
    <property>/scenery/EDDS/Hangar_LHT[0]/door[0]/position-norm</property>
    <factor>1</factor>
    <interpolation>
      <entry><ind> 0.66 </ind><dep>  0.00 </dep></entry>
      <entry><ind> 1.00 </ind><dep> 9.60 </dep></entry>
    </interpolation>
    <axis>
      <object-name>Tor_Y_Achse</object-name>
    </axis>
  </animation>
 
 

</PropertyList>
