A350-family/Nasal/system.nas

25 lines
865 B
Text
Raw 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 15:59:15 +00:00
}, 0, 0);
setlistener("/sim/signals/fdm-initialized", func {
2020-09-05 15:59:15 +00:00
itaf.ITAF.init(0);
}, 0, 0);