Shooting while moving (Multiple BT Task at the same time)

I need to be able to perform multiple operation at the same time (for example, choose the next spot to move and move to it while choosing the next target to shot at and shoot)

What is the proper way to implement that?

This is quite old but as this is the first post I found looking for almost the same question, going to add a solution for future people.

I solve it adding a | Simple Parallel | node, following by a | Move To | and a Task node with a Blackboard Based Condition.
Works perfect.

1 Like

Thanks, I ended up doing something similar but by placing the simple parallel node at the root node.

The real solution would be to have multiple roots on the same behaviour tree that runs indipendently from each other (just with shared variables)

I’ve done this and it doesn’t work for me. Maybe because I’m using a cool down decorator. My cooldown has 1 second cooldow, but what happens is that the AI executes the move to, then it attacks, and then it just never attacks again until it switches to another branch.