diff --git a/AircraftConfig/acconfig.nas b/AircraftConfig/acconfig.nas index 4e404189..f85da89e 100644 --- a/AircraftConfig/acconfig.nas +++ b/AircraftConfig/acconfig.nas @@ -260,6 +260,8 @@ var beforestart_b = func { setprop("instrumentation/adirs/ir[1]/aligned",1); setprop("instrumentation/adirs/ir[2]/aligned",1); setprop("/controls/adirs/mcducbtn", 1); + setprop("/controls/lighting/beacon", 1); + setprop("/controls/lighting/nav-lights-switch", 1); setprop("/systems/acconfig/autoconfig-running", 0); ps_load_dlg.close(); ps_loaded_dlg.open(); @@ -334,6 +336,8 @@ var taxi_b = func { setprop("instrumentation/adirs/ir[1]/aligned",1); setprop("instrumentation/adirs/ir[2]/aligned",1); setprop("/controls/adirs/mcducbtn", 1); + setprop("/controls/lighting/beacon", 1); + setprop("/controls/lighting/nav-lights-switch", 1); settimer(taxi_c, 2); } var taxi_c = func { @@ -362,6 +366,7 @@ var taxi_e = func { setprop("/controls/APU/master", 0); setprop("/controls/APU/start", 0); setprop("/controls/pneumatic/switches/bleedapu", 0); + setprop("/controls/lighting/taxi-light-switch", 1); setprop("/systems/acconfig/autoconfig-running", 0); ps_load_dlg.close(); ps_loaded_dlg.open(); @@ -375,6 +380,9 @@ var takeoff = func { var eng_one_chk_c = setlistener("/engines/engine[0]/state", func { if (getprop("/engines/engine[0]/state") == 3) { removelistener(eng_one_chk_c); + setprop("/controls/lighting/strobe", 1); + setprop("/controls/lighting/landing-lights[1]", 1); + setprop("/controls/lighting/landing-lights[2]", 1); setprop("/controls/flight/speedbrake-arm", 1); setprop("/controls/flight/flaps", 0.290); setprop("/controls/flight/slats", 0.666); diff --git a/Nasal/buttons.nas b/Nasal/buttons.nas index e6658df2..bdd09dc5 100644 --- a/Nasal/buttons.nas +++ b/Nasal/buttons.nas @@ -34,6 +34,13 @@ var variousReset = func { setprop("/controls/switches/RrainRpt", 0); setprop("/controls/switches/wiperLspd", 0); # -1 = INTM 0 = OFF 1 = LO 2 = HI setprop("/controls/switches/wiperRspd", 0); # -1 = INTM 0 = OFF 1 = LO 2 = HI + setprop("/controls/lighting/strobe", 0); + setprop("/controls/lighting/beacon", 0); + setprop("/controls/lighting/wing-lights", 0); + setprop("/controls/lighting/nav-lights-switch", 0); + setprop("/controls/lighting/landing-lights[1]", 0); + setprop("/controls/lighting/landing-lights[2]", 0); + setprop("/controls/lighting/taxi-light-switch", 0); } setlistener("/sim/signals/fdm-initialized", func {