WIP: Add a dedicated server option
This commit is contained in:
@ -29,3 +29,9 @@ func spawn_players(spawn_location: SpawnController, id: int) -> Error:
|
||||
_get_root().add_child(char)
|
||||
return OK
|
||||
return ERR_UNAUTHORIZED
|
||||
|
||||
func remove_player(id: int) -> Error:
|
||||
if multiplayer.is_server():
|
||||
_get_root().find_child("PlayerPlaceholder_" + str(id)).queue_free()
|
||||
return OK
|
||||
return ERR_UNAUTHORIZED
|
||||
|
Reference in New Issue
Block a user