WIP: Handle player disconnected
This commit is contained in:
@ -22,7 +22,7 @@ func register_player(id: int, name: String):
|
||||
player_state.name = name
|
||||
players[multiplayer.get_remote_sender_id()] = player_state
|
||||
|
||||
@rpc("any_peer", "reliable", "call_remote")
|
||||
@rpc("any_peer", "reliable", "call_local")
|
||||
func remove_player(id: int):
|
||||
if multiplayer.is_server():
|
||||
if players.has(id):
|
||||
|
Reference in New Issue
Block a user