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. 

Trouble with Behavior Tree Decorators

Hi, I've been working on some basic Behavior Tree stuff in the first person template. Basically, I'm just getting two vectors as blackboard and comparing them using Compare BB Entries decorator. If they're equal, it's supposed to print a string. However in my case, the behavior tree passes through the condition even though the vectors are never equal.

I've encountered the same issue while working with the 'Does Path Exist' decorator even though my two blackboard vectors were clearly blocked by static meshes. I've checked the nav mesh collision in editor to see that nav mesh is cut out by the blocking meshes. However the behavior tree always passes through it even though both the blackboard vector values were correct.

I'm not sure if there is anything wrong with my workflow. So I've shared the code along with some screenshots below.

Edit: Anyone else experiencing anything similar with Behavior Trees or know a solution for this? I'm kind of stuck with this on my project at the moment. So any help would be really nice.




Product Version: Not Selected
aicon.jpg (455.4 kB)
bt.jpg (317.3 kB)
more ▼

asked Mar 21 '15 at 03:10 AM in Blueprint Scripting

avatar image

1k 83 75 118

avatar image Stormrage256 Mar 24 '15 at 04:01 AM

As for the vectors, they're not equal. I've checked that during the execution as well. I had thought that 'compare bb entries' would only let the behavior tree pass through the selector node if the decorator condition was satisfied. And in this case, as you noticed it's not. But the task 'BTTask_Test' keeps getting executed regardless. So I was wondering why the decorator has no impact on the flow at all.

However it works perfectly, if I place the decorator on the task or if I have another selector or sequence node above the one shown in the screenshot. I'm interested in knowing the reasoning behind why it doesn't work in the situation shown in the screenshot.

avatar image AialexanderPsoih Aug 24 '15 at 11:09 PM

Can I bump this? I'm experience the same problem with this particular decorator, and comparing two booleans. Except in my case, when the two booleans are equal, the tree is supposed to abort the lower priority branch. But instead, it aborts nothing. If anything, whatever I try, the exact opposite occurs. Bump

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

1 answer: sort voted first

I've had similar problem and solved it placing another selector before selector with decorator. With your example it should look something like this:

example image

Hope this helps.

more ▼

answered Nov 13 '15 at 08:30 AM

avatar image

21 1 1

(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