I tried your code and did a quick search on the devforum, I found this post that shares the same problem as you with a solution that might help you Pathfinding NPC eventually coming to a stop (Waypoint iteration stopping?) - #3 by huh_crazy
1 Like