diff --git a/bt/bt_player.cpp b/bt/bt_player.cpp index 971f891..7350dd5 100644 --- a/bt/bt_player.cpp +++ b/bt/bt_player.cpp @@ -8,6 +8,7 @@ #include "core/engine.h" #include "core/io/resource_loader.h" #include "core/object.h" +#include "core/variant.h" #include VARIANT_ENUM_CAST(BTPlayer::UpdateMode); @@ -108,4 +109,6 @@ void BTPlayer::_bind_methods() { BIND_ENUM_CONSTANT(IDLE); BIND_ENUM_CONSTANT(PHYSICS); BIND_ENUM_CONSTANT(MANUAL); + + ADD_SIGNAL(MethodInfo("behavior_tree_finished", PropertyInfo(Variant::INT, "p_status"))); } \ No newline at end of file