Rotate the camera relative to the capsule

Who will say? Set limits for camera rotation, but this is relative to WorldRotation. How to make a rotation restriction relative to the capsule?