raven-copilot.xml 1.2 KB

12345678910111213141516171819202122232425262728
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <PropertyList>
  3. <path>copilot.ac</path>
  4. <nasal>
  5. <load>
  6. cmdarg().getNode("sim/model/ac-type", 1).setValue("raven-copilot");
  7. ##############################################################################
  8. # The on-load Nasal is not executed when this file is loaded as the user
  9. # aircraft.
  10. ##############################################################################
  11. var rplayer = cmdarg();
  12. # Set up property aliases for animations.
  13. rplayer.getNode("ai/models/multiplayer/controls/flight/rudder", 1).alias(rplayer.getNode("sim/multiplay/generic/float[0]"));
  14. rplayer.getNode("ai/models/multiplayer/controls/flight/elevator", 1).alias(rplayer.getNode("sim/multiplay/generic/float[1]"));
  15. rplayer.getNode("ai/models/multiplayer/controls/flight/aileron", 1).alias(rplayer.getNode("sim/multiplay/generic/float[2]"));
  16. rplayer.getNode("ai/models/multiplayer/controls/engines/engine/throttle", 1).alias(rplayer.getNode("sim/multiplay/generic/float[3]"));
  17. </load>
  18. <unload>
  19. cmdarg().getNode("sim/model/ac-type", 1).setValue("");
  20. </unload>
  21. </nasal>
  22. </PropertyList>