Free panning cam and aiming cam

I have followed the character setup example with the free animation set but with this set up moving the camera with mouse or gamepad stick turns the whole character. is there a way to allow the camera to pan the character freely unless the aim trigger is held? I can’t seem to find anything about how to set this up. Basically I want to free pan the camera around the character when not aiming and use the ironsight animations with the camera over shoulder and moving the characters direction only when the left trigger or right mouse button are held. Any help is greatly appreciated