Corrected rotation direction of the shelter door and adjusted it in such
[fg:toms-fgdata.git] / Models / Military / EHVK_shelter.xml
1 <?xml version="1.0"?>
2 <PropertyList>
3
4 <path>EHVK_shelter.ac</path>
5
6  <nasal>
7   <load>
8    if (!contains(globals, "scenery")) globals["scenery"] = {};
9    if (!contains(scenery, "EHVK")) scenery["EHVK"] = {};
10    if (!contains(scenery.EHVK, "shelter")) scenery.EHVK["shelter"] = [nil];
11    scenery.EHVK.shelter[0] =
12      { door :
13        [aircraft.door.new("/scenery/EHVK/shelter[0]/door[0]", 60)
14        ]
15      };
16   </load>
17  </nasal>
18
19 <animation>
20  <type>range</type>
21  <min-m>0</min-m>
22  <max-m>25000</max-m>
23 </animation>
24
25 <animation>
26  <type>rotate</type>
27  <object-name>door</object-name>
28  <property>/scenery/EHVK/shelter[0]/door[0]/position-norm</property>
29  <factor>-90</factor>
30  <center>
31   <x-m>-0.900</x-m>
32   <y-m> 0.000</y-m>
33   <z-m> 0.000</z-m>
34  </center>
35  <axis>
36   <x>0</x>
37   <y>1</y>
38   <z>0</z>
39  </axis>
40 </animation>
41
42 <animation>
43  <type>pick</type>
44  <object-name>door</object-name>
45  <visible>true</visible>
46  <action>
47   <name>click</name>
48   <button>0</button>
49   <repeatable>false</repeatable>
50   <binding>
51    <command>nasal</command>
52    <script>scenery.EHVK.shelter[0].door[0].toggle();</script>
53   </binding>
54  </action>
55 </animation>
56
57 </PropertyList>