1
0
Fork 0

Add auto-start option to aircraft menu to set up aircraft for immediate take-off.

This commit is contained in:
Stuart Buchanan 2013-01-24 21:45:01 +00:00
parent 34cab9724c
commit 8cc5fc24ea

View file

@ -27,6 +27,37 @@
<property>sim/model/hide-yoke</property> <property>sim/model/hide-yoke</property>
</binding> </binding>
</item> </item>
<item>
<name>autostart</name>
<binding>
<command>nasal</command>
<script>
if (getprop("/engines/engine/running")) {
gui.popupTip("Engine already running.", 5);
} else {
setprop("/controls/engines/engine/magnetos", 3);
setprop("/controls/engines/engine/throttle", 0.2);
setprop("/controls/engines/engine/mixture", 1.0);
setprop("/controls/flight/elevator-trim", -0.19);
setprop("/controls/lighting/nav-lights", 1);
setprop("/controls/lighting/strobe", 1);
setprop("/controls/lighting/beacon", 1);
setprop("/consumables/fuel/tank[0]/selected", 1);
setprop("/consumables/fuel/tank[1]/selected", 1);
# Set the altimeter
setprop("/instrumentation/altimeter/setting-inhg", getprop("/environment/pressure-sea-level-inhg"));
gui.popupTip("Hold down \"s\" to start the engine.", 5);
}
</script>
</binding>
</item>
</menu> </menu>
</default> </default>