Updated DualControl: Minor update to the connect messages.
This commit is contained in:
parent
0caa3ebeda
commit
60305380be
2 changed files with 6 additions and 4 deletions
|
@ -3,7 +3,7 @@
|
|||
##
|
||||
## Nasal for copilot for dual control over the multiplayer network.
|
||||
##
|
||||
## Copyright (C) 2007 - 2010 Anders Gidenstam (anders(at)gidenstam.org)
|
||||
## Copyright (C) 2007 - 2011 Anders Gidenstam (anders(at)gidenstam.org)
|
||||
## This file is licensed under the GPL license version 2 or later.
|
||||
##
|
||||
###############################################################################
|
||||
|
@ -123,7 +123,8 @@ var connect = func (pilot) {
|
|||
] ~ ADC.copilot_connect_pilot(pilot);
|
||||
|
||||
print("Dual control ... connected to pilot.");
|
||||
setprop("/sim/messages/copilot", "Welcome aboard.");
|
||||
setprop("/sim/messages/copilot", "Welcome aboard. I'm " ~
|
||||
pilot.getNode("callsign").getValue() ~ ".");
|
||||
}
|
||||
|
||||
var disconnect = func {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
##
|
||||
## Nasal for main pilot for dual control over the multiplayer network.
|
||||
##
|
||||
## Copyright (C) 2007 - 2010 Anders Gidenstam (anders(at)gidenstam.org)
|
||||
## Copyright (C) 2007 - 2011 Anders Gidenstam (anders(at)gidenstam.org)
|
||||
## This file is licensed under the GPL license version 2 or later.
|
||||
##
|
||||
###############################################################################
|
||||
|
@ -30,7 +30,8 @@ var connect = func (copilot) {
|
|||
process_data = ADC.pilot_connect_copilot(copilot);
|
||||
|
||||
print("Dual control ... copilot connected.");
|
||||
setprop("/sim/messages/copilot", "Hi.");
|
||||
setprop("/sim/messages/copilot", "Hi. I'm your copilot " ~
|
||||
copilot.getNode("callsign").getValue() ~ ".");
|
||||
}
|
||||
|
||||
######################################################################
|
||||
|
|
Loading…
Add table
Reference in a new issue