if a tutorial is running, let the '+' make the instructor repeat his
last message; otherwise ATC
This commit is contained in:
parent
156de8e0c3
commit
783256433a
1 changed files with 21 additions and 11 deletions
|
@ -174,7 +174,16 @@ settimer(func {
|
|||
##############################################################################
|
||||
|
||||
|
||||
atc_repeat = func {
|
||||
msg_repeat = func {
|
||||
if (getprop("/sim/tutorial/running")) {
|
||||
var last = getprop("/sim/tutorial/last-message");
|
||||
if (last == nil) {
|
||||
return;
|
||||
}
|
||||
setprop("/sim/messages/pilot", "Say again ...");
|
||||
settimer(func { setprop("/sim/messages/copilot", last) }, 1.5);
|
||||
|
||||
} else {
|
||||
var callsign = getprop("/sim/user/callsign");
|
||||
var atc = props.globals.getNode("/sim/messages/atc", 1);
|
||||
var last = atc.getValue();
|
||||
|
@ -186,6 +195,7 @@ atc_repeat = func {
|
|||
atc.setValue("I say again:");
|
||||
atc.setValue(last)
|
||||
}, 6);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue