Need help with shooting ai behavior tree

There are multiple ways you could do it.
You could set the blackboard values through the AI controller class or set the variable as instance editable inside the behaviour tree task class.

Another thing that you should pay attention to is setting the selected tree node decorator to be self, so it can be interrupted whenever the blackboard decorator value changes.

1 Like