Make a On Rail Shooter Game?

I am interested in making an on rail shooter game. I am imagining a game similar to starfox where the player is on a set path, yet can still move around the screen and shoot at objects. What would be the first steps in figuring out how to do that? I am interested in trying to do it blueprint, but I am open to doing C++. Thanks!