32 lines
928 B
Text
32 lines
928 B
Text
|
# 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);
|
||
|
});
|
||
|
|
||
|
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);
|
||
|
}
|
||
|
});
|