diff --git a/Nasal/engines.nas b/Nasal/engines.nas index ba48a93..f13791e 100644 --- a/Nasal/engines.nas +++ b/Nasal/engines.nas @@ -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); } }