Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

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?

Product Version: UE 4.17
more ▼

asked Aug 17 '17 at 07:17 AM in C++ Programming

avatar image

1 1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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: https://gist.github.com/nullB0t/3d2e891d53bb756ac11218d9b50ade66)

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!

more ▼

answered Aug 17 '17 at 03:46 PM

avatar image

356 15 16 25

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question