WIP: Handle player disconnected

This commit is contained in:
2025-01-30 13:36:53 +01:00
parent c877e81562
commit f61b961d42
3 changed files with 19 additions and 12 deletions

View File

@ -26,9 +26,7 @@ func _ready() -> void:
if err != OK:
push_error("Couldn't load object spawner")
# add objects spawner
if multiplayer.is_server():
_spawn_player(1)
else:
if not OS.has_feature("dedicated_server"):
_request_spawn.rpc_id(1, multiplayer.get_unique_id())
pass # Replace with function body.