mirror of
https://github.com/kristoferssolo/FuncIt.git
synced 2025-10-21 19:30:35 +00:00
Updated network setup
This commit is contained in:
parent
9476a26cb0
commit
8f31e0c510
@ -26,7 +26,7 @@ func _ready():
|
|||||||
current_spawn_location_instance_number = 1
|
current_spawn_location_instance_number = 1
|
||||||
for player in PersistentNodes.get_children():
|
for player in PersistentNodes.get_children():
|
||||||
if player.is_in_group("Player"):
|
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:
|
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("update_position", spawn_location.global_position)
|
||||||
player.rpc("enable")
|
player.rpc("enable")
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
source_md5="8fad288d82d0e9d24f41f65f4d5e4301"
|
source_md5="8710596f5b7629d554530ee5d3004df2"
|
||||||
dest_md5="a9d8bb2f96bc788ab0d7fc16f125c927"
|
dest_md5="6bee633952da9324309ed830215bd4a3"
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
@ -24,7 +24,7 @@ func _ready():
|
|||||||
current_spawn_location_instance_number = 1
|
current_spawn_location_instance_number = 1
|
||||||
for player in PersistentNodes.get_children():
|
for player in PersistentNodes.get_children():
|
||||||
if player.is_in_group("Player"):
|
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:
|
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("update_position", spawn_location.global_position)
|
||||||
player.rpc("enable")
|
player.rpc("enable")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user