Blackboard Key not setting properly

I’m running into a major problem that is causing problems with my AI blueprint tree. I setup a whole tree and it didn’t update correctly so I figured I would start smaller and do simple waypoints first. A TeamWaypoint is an actor with a location, team(int) and order(int).

Essentially I iterate over all actors on the class and navigate to whatever is the current Waypoint is starting with 0 (ignoring it if it’s for the other team).

Everything works perfectly for the first waypoint. It’s detected and the ai runs to it. But when it goes to find the second waypoint, it doesn’t seem to know it’s on waypoint 1 instead of waypoint 0.

In my move to task I added a decorator to update the route when it finished.

Essentially, wen it finished go to the next route.

But in my task the value for the key Waypoint is never updated. Even with breakpoints it is always 0 no matter how long passes. It just won’t change.

18014-movetoroute.png

Even with breakpoints this value is always 0. the keys in the blueprint Tree details are set correctly as well. It even updates the variable in the blackboard tab of the Behavior Tree so I know it is updating. Note that the waypoint key has a value of 1.

18015-waypointupdating.png

I’m at a bit of a loss as to what might be happening here. Is this a bug?

Hello .,

Just a quick questions to rule a couple of things out.

Quick Questions:

What version of the engine are you using?

What version of the engine did you create the blackboard in that is causing the issue?

4.4.3 2296771 for both.

I solved this. Apparently I was storing a value under the wrong name and resetting waypoint count to 0 at the start of the function.