How can I let an actor snap to a spline path?

I believe it isn’t possible in Blueprints yet however in c++ you could definitly do it