Updated network setup

This commit is contained in:
Kristofers Solo
2021-11-02 22:48:15 +02:00
parent 9476a26cb0
commit 8f31e0c510
4 changed files with 4 additions and 4 deletions

View File

@@ -26,7 +26,7 @@ func _ready():
current_spawn_location_instance_number = 1
for player in PersistentNodes.get_children():
if player.is_in_group("Player"):
for spawn_location in $Spawn_locations.get_children():
for spawn_location in $spawn_locations.get_children():
if int(spawn_location.name) == current_spawn_location_instance_number and current_player_for_spawn_location_number != player:
player.rpc("update_position", spawn_location.global_position)
player.rpc("enable")