Download

How do you spawn multiple cars onto a closed loop spline and move the cars along the spline?

I’m hoping you can help me out. I’ve been trying to figure this out for the entire night and I think I’ve become brain dead.

I’m trying to create traffic with cars. The cars all follow a closed-loop spline that I can edit in the editor. At runtime, I’d like cars to be spawn with some random variation in location along the entire length of the spline (meaning, gaps between cars should be random).

On top of this, spawned cars should follow the spline/circuit.

How do I accomplish this? I desperately need help with this.

Here’s what I have so far:

I’m able to create meshes that go along the spline, however, I cannot select the individual meshes in the World Outliner. I’m guess I need to figure out how to do this and then assign a blueprint to each mesh, telling it to follow the spline.

Can you help me with getting each individual mesh to show up in the World Outliner?