No.541258 ViewReplyOriginalReport

Trying to rig this rifle cocking mechanism. First time trying out rigging w/o tutorials. Can't figure out how to get the piston to travel only on one axis. It's assigned to the green bone in the GIF. I want it to slide along one axis like a piston in a rifle would.

Any help/explanations would be welcome.