Add auto-start option to aircraft menu to set up aircraft for immediate take-off.
This commit is contained in:
parent
34cab9724c
commit
8cc5fc24ea
1 changed files with 31 additions and 0 deletions
|
@ -27,6 +27,37 @@
|
|||
<property>sim/model/hide-yoke</property>
|
||||
</binding>
|
||||
</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>
|
||||
</default>
|
||||
|
||||
|
|
Loading…
Reference in a new issue