diff --git a/src/character_actor.cpp b/src/character_actor.cpp index cb34e93..ffed764 100644 --- a/src/character_actor.cpp +++ b/src/character_actor.cpp @@ -22,7 +22,7 @@ void CharacterActor::_bind_methods() { void CharacterActor::_enter_tree() { GDGAMEONLY(); this->nav_agent = this->get_node("NavigationAgent3D"); - this->nav_agent->connect("velocity_computed", Callable(this, "set_velocity_target")); + this->nav_agent->connect("velocity_computed", callable_mp(this, &CharacterActor::set_velocity_target)); this->target_rotation = this->get_global_transform().get_basis().get_quaternion(); this->health = this->get_node("Health"); this->primary_weapon_pool = this->get_node("ProjectilePool");