Rotate player (and camera) to targetted actor

one additional piece, so this worked great. The one thing I’d like to improve now is; as I move the mouse left and right, it still adjusts the camera and player rotation, it snaps back to the actor i’m locked on to, but I’d like to basically turn off the mouses ability to move the camera left and right, etc. While I’m locked on - do you have any solutions for that?
Thank you for the help!