Shutdown Function
This commit is contained in:
parent
35238370b5
commit
c1a32c6419
1 changed files with 13 additions and 0 deletions
|
@ -24,6 +24,19 @@ Engines.autostart = func {
|
|||
}
|
||||
if ( ! getprop('/engines/engine[1]/running') ) {
|
||||
me.startengine[1] = 1;
|
||||
}
|
||||
if ( ! getprop('/engines/engine[0]/running') ) {
|
||||
setprop('system/electrical/outputs/efis', 10);
|
||||
setprop('systems/electric/outputs/avionics', 1);
|
||||
}
|
||||
}
|
||||
|
||||
Engines.shutdown = func {
|
||||
if ( ! getprop('/controls/engines/engine[0]/cutoff',1) ) {
|
||||
setprop('system/electrical/outputs/efis', 0);
|
||||
}
|
||||
if ( ! getprop('/controls/engines/engine[0]/cutoff',1) ) {
|
||||
setprop('system/electrical/outputs/efis', 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue