Behavior Tree - Suddenly stops halfway through the spline path?

I’ve made a behavior tree for an AI to walk a certain path.
The splinepath has 5 points in it but for some unknown reason to me the NPPC stops walking at point 3 and the behavior tree stops working and skips to “wait everytime”

Is there a hero here to sees the problem in my setup?

it may be your move node is failing,

also you seem to be using too different pathindexs? and what happens when it reaches the end of the path?

Im a step further thanks to you, but havn’t found the issue yet :frowning:
So basicly the pathvector already had a stored “3” in it because i copied part of the blueprints from another project…
Now I made a new pathvector and it seems like the behaviortree is actually failing at the first part of finding a path.

Any idea what I’ve done wrong with ihe blueprints there?

Update, it does seem to go wrong at the last part of increasing the path point with +1…
Im quite certain… but I dont know what

Well im completely stuck,
I remade the whole Behavior Tree without using any copies, started from stratch,
But again the character walks to the 3th point of many a spline with many more on it.
After that it just stops functioning,
spamming “find point”& “move”

Anyone knows what the issue could be?

start by validating all your results using print strings

so check the spline location, does it match where it should be, can the AI actually get there (navmesh, pathfinding etc) is the index a valid number etc

The problem was the navmesh!
Thank you so much! :smiley:

I feel so stupid lol.

1 Like