How to make my BehaviorTreeComponent in C++

So, i try to find answers, but in avery examle Behavior trree makes from blueprints. SOme of them make Tasks in C++, but no one ask how to add C++ task to tree (Blueprint or C++).


For example I have UBTTask_MoveTo_Object class (based on UBTTask_MoveTo), and i want to add it into my tree. How to?

I’m not sure I understand your question correctly but to implement a task you should have a class extending UBTTaskNode (something that looks like this:

After that you build your project and you should be able to right click from the BTree in the editor and be able to call this task in there.

Hope this helps!