From fc3237a432d3b7a11fd4468d6d3fd5525ebd2c0c Mon Sep 17 00:00:00 2001 From: nokoe Date: Fri, 21 Jun 2024 20:50:40 +0200 Subject: replace setup with _init --- client/scripts/game.gd | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'client/scripts/game.gd') diff --git a/client/scripts/game.gd b/client/scripts/game.gd index 7c9b4bc2..9e02e7c0 100644 --- a/client/scripts/game.gd +++ b/client/scripts/game.gd @@ -29,4 +29,12 @@ func _ready(): player_instance.update_position(position, rotation) ) + Multiplayer.connect("remove_playern", func(id: int): + var player = players.get(id) + if player != null: + players.erase(id) + player.queue_free() + + ) + Multiplayer.send_join("Blub", 1) -- cgit v1.2.3-70-g09d2