1
0
Fork 0

friendly ATC tells us on which runway we are, without sound.

Please complain if you find it, nevertheless, annoying.
This commit is contained in:
mfranz 2007-10-04 18:23:36 +00:00
parent 7fa65fe3da
commit 321fbbbcab

View file

@ -190,6 +190,14 @@ _setlistener("/sim/signals/nasal-dir-initialized", func {
setlistener(b ~ "yellow", func { log.write(cmdarg().getValue(), 0.8, 0.8, 0) }); setlistener(b ~ "yellow", func { log.write(cmdarg().getValue(), 0.8, 0.8, 0) });
setlistener(b ~ "magenta", func { log.write(cmdarg().getValue(), 0.7, 0, 0.7) }); setlistener(b ~ "magenta", func { log.write(cmdarg().getValue(), 0.7, 0, 0.7) });
setlistener(b ~ "cyan", func { log.write(cmdarg().getValue(), 0, 0.6, 0.6) }); setlistener(b ~ "cyan", func { log.write(cmdarg().getValue(), 0, 0.6, 0.6) });
settimer(func {
setlistener("/sim/atc/runway", func {
var rwy = cmdarg().getValue();
if (!(getprop("/sim/presets/airport-id") == "KSFO" and rwy == "28R"))
setprop("/sim/messages/atc", "You are on runway " ~ rwy ~ ".");
}, 1);
}, 5);
}); });