2020-07-18 14:49:38 +00:00
|
|
|
# A350XWB
|
|
|
|
#By Gabriel Hernandez(YV3399) and Legoboyvdlp
|
|
|
|
|
|
|
|
setlistener("/sim/signals/fdm-initialized", func {
|
|
|
|
|
|
|
|
setprop("/controls/lighting/strobe",0);
|
|
|
|
setprop("/controls/lighting/beacon",0);
|
|
|
|
setprop("/controls/lighting/landing-light",0);
|
|
|
|
setprop("/controls/lighting/logo-lights",0);
|
|
|
|
setprop("/controls/lighting/nav-lights",0);
|
2020-09-05 15:59:15 +00:00
|
|
|
}, 0, 0);
|
2020-07-18 14:49:38 +00:00
|
|
|
|
|
|
|
setlistener("controls/lighting/landing-lights[0]", func
|
|
|
|
{
|
|
|
|
var landl = getprop("controls/lighting/landing-lights[0]");
|
|
|
|
if (landl == 1) {
|
|
|
|
setprop("sim/rendering/als-secondary-lights/use-landing-light",1);
|
|
|
|
} else {
|
|
|
|
setprop("sim/rendering/als-secondary-lights/use-landing-light",0);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
setlistener("controls/lighting/landing-lights[2]", func
|
|
|
|
{
|
|
|
|
var landr = getprop("controls/lighting/landing-lights[2]");
|
|
|
|
if (landr == 1) {
|
|
|
|
setprop("sim/rendering/als-secondary-lights/use-alt-landing-light",1);
|
|
|
|
} else {
|
|
|
|
setprop("sim/rendering/als-secondary-lights/use-alt-landing-light",0);
|
|
|
|
}
|
2020-09-05 15:59:15 +00:00
|
|
|
}, 0, 0);
|