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")

View File

@ -1,3 +1,3 @@
source_md5="8fad288d82d0e9d24f41f65f4d5e4301"
dest_md5="a9d8bb2f96bc788ab0d7fc16f125c927"
source_md5="8710596f5b7629d554530ee5d3004df2"
dest_md5="6bee633952da9324309ed830215bd4a3"

View File

@ -24,7 +24,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")