Switching spline actors at runtime

Hey there! I’ve been stuck on a simple task for too long..
I have a vehicle following splines (Road A and Road B) it starts following after I set the road spline to follow, I’m trying to make it works like, at the end of Road A start using Road B
I can make it works by just following Road A or B, and I’m getting the spline length on tick so I can set an “End Spline” variable, I’m unsure if I need to set an arrays for the roads, I tried by just set the Road to follow when reaching the end but it keep stuck with one road or the other, any help?

Hey there @handycup3D! Welcome back to the community! We may have to see how you’re managing your BP for deeper advice, but the basic gist would be to have your splines have a reference to the next in line (if the road is linear) and when reaching the end spline, change the spline follow target you have setup. If not linear, you may need to have some form of collision or position check to choose the next path. This will depend how your road system is intended to be and how your current spline follow system is setup.

Hey! Thanks for replying, indeed I haven’t explained how the things are currently working sorry for that! Basically the vehicles follow the “RoadSpline” spline variable, and I just need to set which road spline to follow as in the second picture. As you can see the system is running on tick, I’m using a vehicle and it steer/ accelerate based on the spline
The path is linear, I mean vehicles who reaches the end of a spline, they start by the begin till the end of the next road

I also own a spline asset who have some cool features like sending event across the splines, but I don’t know how to use it with an actor with physics enabled, according to the manual:

"Setting up a follower is all the same in this case except one thing. PFPathComponent controlled components needs to be manually set to those with “Simulating Physics” enabled. "

I’m not sure how to set those components (last pic), making this asset works probably fixes the spline switching question too, please let me know if you need more infos




Hey @SupportiveEntity just pinging in case you missed the reply, sorry if you already read it