WIP: Some updates
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user