summaryrefslogtreecommitdiff
path: root/godot/scripts/GameBase.gd
diff options
context:
space:
mode:
Diffstat (limited to 'godot/scripts/GameBase.gd')
-rw-r--r--godot/scripts/GameBase.gd3
1 files changed, 2 insertions, 1 deletions
diff --git a/godot/scripts/GameBase.gd b/godot/scripts/GameBase.gd
index be430d4..e8f7ad0 100644
--- a/godot/scripts/GameBase.gd
+++ b/godot/scripts/GameBase.gd
@@ -29,7 +29,8 @@ remote func set_up_server_info(info):
$HUD/ServerJoinMenu/MOTD.text = info["MOTD"]
$HUD/ServerJoinMenu/ServerName.text = info["server_name"]
$DEFAULTCAM.transform = info["cam_pos"]
- cam.attach($DEFAULTCAM, "STATIC")
+ cam.attach($DEFAULTCAM, "STATIC", NodePath("."))
+
rpc_id(1, "_call_on_server", "_client_connection_confirmed", {"id" : client_id, "username" : player_name})