AI Traffic Pathfinding

I’m working on this City Building game and i want to get traffic to spawn on the roads. Each player has their own plot which means they have their own Road Objects.

I’ve made paths for the cars (marked in yellow) and stop markers (marked in red) to follow but i just don’t know how to script it properly.

Keep in mind that the car objects are not physics based and Don’t Collide. They would be there just for aesthetics.

From what I’ve looked at so far, i have made a detector part Infront of the car model to supposedly follow the paths. I Just don’t know where to start with the logic.

Any help with this is very much appreciated!

1 Like

looks awesome you can visit this:

3 Likes

Can you use attributes in pathfinding params?

1 Like