I repost here a message that I sent to the forum. I think that there is a bug with the evaluation of the behaviour tree decorator when used with composite node:
Problem with the AI Blueprint Decorator (Bug???)
Hi,
I was having a problem with my own custom blueprint decorator that I use as guard to execute a behaviour subtree. The subtree was always executed whatever the return condition was set … I though that the problem was coming from my code so I tried the Blackboard decorator to test a variable value. Here again the subtree of the selector is always executed even if the condition of the blackboard is not met…strange … strange … is this a bug ? or am I doing something wrong…
I attach some of my code and debug infos. As you can see, the state bb variable is set to “wander” so it is not equal to “flee”. But the ping task is always called (The ping task simply prints a message on the screen and returns a success value of true)
Can anyone help with this please