Download

AI pathing to set target points

Im trying to experiment with black boards and behaviour trees with ai pathing, and I’m having trouble getting the ai to go to a target point, wait a second, then to the next one and repeat. I already have it set up to run after you when it sees you but it doesnt go back and forth between the target points. Just stays in one place and doesn’t even move.

-In your controller, have a array of target points editable so that you can set them up in the game world.
-Get the location of the target point and save that to the blackboard
-In your BT, move to the location.

I’m not sure how i would get the array go to the next element upon completion.