diff --git a/src/character_actor.cpp b/src/character_actor.cpp index 525b294..1917176 100644 --- a/src/character_actor.cpp +++ b/src/character_actor.cpp @@ -27,6 +27,8 @@ void CharacterActor::_enter_tree() { GDGAMEONLY(); this->health = this->get_node("Health"); this->primary_weapon_pool = this->get_node("ProjectilePool"); this->planner = this->get_node("Planner"); + Ref game_mode = GameRoot::get_singleton()->get_game_mode(); + game_mode->register_player_character(this); } void CharacterActor::_process(double delta_time) { GDGAMEONLY();