A350-family/Nasal/lighting.nas
fly 2c15b8362f Initial commit
Signed-off-by: fly <merspieler@airmail.cc>
2020-07-19 00:49:38 +10:00

31 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);
}
});