Player controlled turret on a rail track?

I would like to create a first person turret (weapon/camera) that slides along a rail track style system. I can create all the assets and I’m just curious how to set up a blueprint with this functionality? The only movement’s I would need is forwards, backwards and pivot for aiming. Maybe someone with a better understanding of blueprint setups would also like to work with me on this?

I found this thread discussing a similar setup. This would be great, moving the turret only a spline.