Is there a way to move a character in a defined way along another asset without using splines?

Hi,

I’m a little new to scripting in Unreal and I was hoping I could get some help with an idea I have. https://www.youtube.com/watch?v=CSw3YUnsCz4 I was watching footage of a cancelled flash game and in the video, there was a certain type of ramp that if the player ran onto it, character movement input would pause and it would trigger a sequence to run up a building wall or do a large leap across buildings.

I know how to do wall runs and make characters move along a spline but I was wondering if there is an alternate way to script character movement across other assets.

I know this can be done with splines, but I wanted to know if there is a way to make a kit of modular static mesh pieces for a track builder such as a 90deg road, a straight road, a ramp etc and when my character moves onto a piece, they will get attached to the road and move along it’s surface . The idea is that if I build a track with these pieces, the character will move forward(and only forward) along this road until they either jump off or get knocked off.

The ideas I have on ways to approach this are:

a) Have a movement animation for each piece so using the road kit strings together a bunch of animations to make smooth movement across the road. However, I’m not sure if that is memory efficient and I’m wondering if the limitation is that the character can’t land onto the road from any point because the animation is only from starting at a specific point A to B of each track piece

b) Attach a spline to each modular piece so that it’ still a modular road kit but the character would interact with the spline of each piece to move around. I’m not sure if this is a round about way of tackling this and would having so many splines be efficient performance/memory wise if there are numerous roads made from the kit

How would you tackle this? and is there a simpler way to achieve this that I’m not aware of from inexperience?