Download

Behavior Tree abort lower priority and the best way to solve this issue.

I have a decorator which aborts lower priority task but the problem is that if the current execution goes inside the tree and both of them are not on the same level, the execution of the task doesn’t get aborted.

Here the Wait 2 gets aborted is the condition(EnemyDistanceCheck) is full filled but the wait 1 doesn’t get aborted.

Should this work like this? I did this to solve the issue but not sure if its the best way to deal with it.

2dded394bcfb4d42d0080895673cb8a7dd44f97b.png

From my research I found out that custom nodes are not data driven while if we use a blackboard node, they are executed each time the balckboard data is changed.

So using a service and a blackboard check solved the issue.