A350-family/Nasal/system.nas

20 lines
780 B
Text
Raw Permalink Normal View History

## Lights ##
strobe_switch = props.globals.getNode("controls/switches/strobe", 1);
var beacon = aircraft.light.new( "/sim/model/lights/beacon", [0.05, 1.2,], "/controls/lighting/beacon" );
beacon_switch = props.globals.getNode("controls/lighting/beacon", 1);
var strobe = aircraft.light.new( "/sim/model/lights/strobe", [0.01, 3,], "/controls/lighting/strobe" );
## GEAR
#######
# prevent retraction of the landing gear when any of the wheels are compressed
setlistener("controls/gear/gear-down", func
{
var down = props.globals.getNode("controls/gear/gear-down").getBoolValue();
if (!down and (getprop("gear/gear[0]/wow") or getprop("gear/gear[1]/wow") or getprop("gear/gear[2]/wow")))
{
props.globals.getNode("controls/gear/gear-down").setBoolValue(1);
}
2020-09-05 16:22:14 +00:00
}, 0, 0);