NPC Patrol/Pathfinding

Hi, thanks for any help.

I’m attempting to get a patrol/pathfining system working in my game (city builder). The way it needs to work is after the NPC spawns it moves along a road (actors) until is has reached a set distance from it’s start location and then return to the start location.

So far I have it working so that it either goes to the last road actor in the world or it will go to all of them in the array, doesn’t work based on distance (haven’t had a chance to get the return part working yet). Most of which is modified from watching the MOBA Minion/Creep series.

Screenshots are: AI Controller/ Get Nearest Waypoint (inside AI controller)/ Service on the route of the behaviour tree that should update to the next waypoint.