Blackboard base Condition problem

I have problems with behavior tree which is not detecting the value idle.

How could i fix this?

][3]

The BTS_VisionCheck service will run only as long as the subtree it’s on is the active branch of the whole BT. With the setup you have the service node is never active, so it’s not updating your BB. Add a fallback, catch-all “Wait” node to give the service a chance to tick.

BTW, having a “catch-all” fallback behavior is a really good practice, so always add one :wink:

Cheers,

–mieszko

What do you mean by “Add a fallback, catch-all “Wait” node to give the service a chance to tick.” Sorry I’m new here. Can you please provide me an image to visualize it.

In your case it would be to add a “Wait” task as the lowest priority item on the selector with the service. That way if all the rest of the tree fails it will wait a little bit, keeping the branch active, and thus giving the service a chance to update.

Generally speaking, the wait is good because it keeps the tree from rapidly cycling when it can’t do anything.