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

<PropertyList>

 <path>EuroMast.ac</path>

 <animation>
    <name>EuroMastCombined</name>
    <object-name>ManTop</object-name> 
    <object-name>Boeg_1</object-name> 
    <object-name>Lift_1</object-name> 
    <object-name>Restrnt_0_1</object-name> 
    <object-name>Base</object-name> 
    <object-name>Instap</object-name> 
    <object-name>Voet_1</object-name> 
    <object-name>Voet_2</object-name> 
    <object-name>Voet_3</object-name> 
 </animation>

  <animation>
    <type>textranslate</type> 
    <object-name>EuroMastCombined</object-name> 
    <property>/sim/time/sun-angle-rad</property>
    <step> 1.57 </step>
    <factor>0.318471338</factor>
    <axis> 
      <x> -1 </x> 
      <y>  0 </y> 
    </axis> 
  </animation>

 <animation>
  <type>select</type>
  <object-name>RedOn</object-name>
      <condition>
       <greater-than>
        <property>/sim/time/sun-angle-rad</property>
        <value>1.47</value>
       </greater-than>
      </condition>
 </animation>

 <animation>
  <type>select</type>
  <object-name>FlashOn</object-name>
      <condition>
     <and>
       <greater-than>
        <property>/sim/time/sun-angle-rad</property>
        <value>1.47</value>
       </greater-than>
       <greater-than>
        <property>/sim/model/lights/EmTower/Flash</property>
        <value>0</value>
       </greater-than>
     </and>
      </condition>
 </animation>

 <animation>
  <object-name>Lift</object-name>
  <type>spin</type>
  <property>/sim/model/lights/EmTower/Rot</property>
  <factor>1</factor>
  <center>
   <x-m>0</x-m>
   <y-m>0</y-m>
   <z-m>0</z-m>
  </center>
  <axis>
   <x>0</x>
   <y>0</y>
   <z>1</z>
  </axis>
 </animation>

 <animation>
  <type>translate</type>
  <object-name>Lift</object-name>
  <property>/sim/model/lights/EmTower/Pos</property>
  <!-- van -98.5 tot -15 als top position  -->
  <offset-m>1</offset-m>
  <axis>
   <x>0</x>
   <y>0</y>
   <z>1</z>
  </axis>
  <axis>   
   <x1-m> 0</x1-m>
   <y1-m> 0</y1-m>
   <z1-m>-98.5</z1-m>
   <x2-m> 0</x2-m>
   <y2-m> 0</y2-m>
   <z2-m>-15</z2-m>
  </axis>
 </animation>

 <nasal>
  <load>
   <![CDATA[
       var Loep = func () {
              var Delay = 1;
              if(getprop("/sim/model/lights/EmTower/Flash") == 0){
                 setprop("/sim/model/lights/EmTower/Flash",1);
                 Delay = 0.1;
              }else{
                 setprop("/sim/model/lights/EmTower/Flash",0);
              };
              settimer(Loep , Delay);     
      };
      var Lift = func () {
         if(getprop("/sim/model/lights/EmTower/Pos") <= -50)
           interpolate("/sim/model/lights/EmTower/Pos",33.5,60);
         else
	   interpolate("/sim/model/lights/EmTower/Pos",-51,60);
         settimer(Lift, 90);
      }
      setprop("/sim/model/lights/EmTower/Pos",-51);
      setprop("/sim/model/lights/EmTower/Rot",-2);
      setprop("/sim/model/lights/EmTower/Flash",0);
      Loep();
      Lift();
   ]]>
  </load>
 </nasal>

</PropertyList>

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

    <PropertyList>

     <path>Tor_Ness_Lighthouse.ac</path>

     <animation>
      <type>range</type>
      <min-m>0</min-m>
      <max-m>16000</max-m>
     </animation>

     <animation>
      <object-name>Flash1</object-name>
      <object-name>Blank1</object-name>
      <enable-hot type="bool">false</enable-hot>
     </animation>
     
     <animation>
      <type>alpha-test</type>
      <alpha-factor>0.01</alpha-factor>
     </animation>

     <animation>
      <type>select</type>
      <object-name>Flash1</object-name>
      <object-name>Blank1</object-name>
      <condition>
       <greater-than>
        <property>/sim/time/sun-angle-rad</property>
        <value>1.57</value>
       </greater-than>
      </condition>
     </animation>
     
     <animation>
     <type>timed</type>
     <object-name>Flash1</object-name>
     <object-name>Blank1</object-name>
     <use-personality type="bool">true</use-personality>
    <branch-duration-sec>
      <random>
       <min>0.1</min>
       <max>0.1</max>
      </random>
     </branch-duration-sec>
     <branch-duration-sec>
      <random>
       <min>2.9</min>
       <max>2.9</max>
      </random>
     </branch-duration-sec>
    </animation>

    </PropertyList>
-->
