WIP: Some updates

This commit is contained in:
2025-02-09 17:04:35 +01:00
parent 906502a18e
commit b3d2461961
4 changed files with 19 additions and 20 deletions

View File

@ -25,11 +25,11 @@ func spawn_players(spawn_location: SpawnController, id: int) -> Error:
_get_root().add_child(char)
char.shared_node.global_position = new_position
var model_scene: PackedScene = ResourceLoader.load("res://scenes/characters/y-bot/character.tscn")
var model: CharacterWrapper = model_scene.instantiate()
model.global_position = new_position
model.set_owner_placeholder(char)
_get_model_root().add_child(model)
#var model_scene: PackedScene = ResourceLoader.load("res://scenes/characters/y-bot/character.tscn")
#var model: CharacterWrapper = model_scene.instantiate()
#model.global_position = new_position
#model.set_owner_placeholder(char)
#_get_model_root().add_child(model)
return OK
return ERR_UNAUTHORIZED