float-switch.xml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <PropertyList>
  3. <path>float-switch.ac</path>
  4. <animation>
  5. <object-name>Switch</object-name>
  6. <object-name>base</object-name>
  7. </animation>
  8. <animation>
  9. <type>material</type>
  10. <object-name>Switch</object-name>
  11. <object-name>base</object-name>
  12. </animation>
  13. <animation>
  14. <type>pick</type>
  15. <object-name>Switch</object-name>
  16. <action>
  17. <button>0</button>
  18. <repeatable>false</repeatable>
  19. <binding>
  20. <command>property-toggle</command>
  21. <property>controls/gear/floats-armed</property>
  22. </binding>
  23. <binding>
  24. <command>property-toggle</command>
  25. <property>sim/model/sound/click</property>
  26. <value>1</value>
  27. </binding>
  28. </action>
  29. </animation>
  30. <animation>
  31. <type>rotate</type>
  32. <object-name>Switch</object-name>
  33. <property>controls/gear/floats-armed</property>
  34. <factor> 35 </factor>
  35. <axis>
  36. <x> 0 </x>
  37. <y> -1 </y>
  38. <z> 0 </z>
  39. </axis>
  40. </animation>
  41. <!--
  42. <animation>
  43. <type>select</type>
  44. <object-name>Switch</object-name>
  45. <object-name>base</object-name>
  46. <condition>
  47. <property>sim/model/uh1/emergencyfloats</property>
  48. </condition>
  49. </animation>
  50. -->
  51. <animation>
  52. <type>material</type>
  53. <object-name>base</object-name>
  54. <condition>
  55. <and>
  56. <equals>
  57. <property>controls/gear/floats-armed</property>
  58. <value>1</value>
  59. </equals>
  60. <or>
  61. <equals>
  62. <property>sim/multiplay/generic/string[1]</property>
  63. <value>SAR</value>
  64. </equals>
  65. <equals>
  66. <property>sim/multiplay/generic/string[1]</property>
  67. <value>Passenger-offshore</value>
  68. </equals>
  69. </or>
  70. </and>
  71. </condition>
  72. <emission>
  73. <red> 1 </red>
  74. <green> 0.1 </green>
  75. <blue> 0.1 </blue>
  76. </emission>
  77. </animation>
  78. </PropertyList>