Mechwarrior style tank controls, how to recenter legs to torso

so im going through and blueprinting what should essentially feel like mwo mechwarrior controls, everything so far with basic movement has been working however Ive been struggling to figure out how to make the legs recenter to the forward vector of the torso or camera yaw. if you dont know what im talking about its basically tank controls where the torso is the turret and the legs are the treads and i want to, at the press of a key reset the local rotation of the legs to that which it starts at (perfectly straight forward) based on the torso or camera.
any help is greatly appreciated, thank you!