friendly ATC tells us on which runway we are, without sound.
Please complain if you find it, nevertheless, annoying.
This commit is contained in:
parent
7fa65fe3da
commit
321fbbbcab
1 changed files with 8 additions and 0 deletions
|
@ -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 ~ "magenta", func { log.write(cmdarg().getValue(), 0.7, 0, 0.7) });
|
||||
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);
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue