Limit Camera Yaw

Hi I am currently working on a tps project . I have my character blueprint set to orient rotation to movement and use controller based rotation.my camera is using controllers rotation. I want to clamp the camera 155 degree towards left and 155 degrees towards right . Using max and min yaw from camera manager doesnt seem to work when I move the character .I thus want to limit the yaw of my camera relative to the character . However if my character itself turn toward camera(relative values beyond limit) the camera must not rotate back or the character must not be prevented from turning towards the camera(the camera will automatically get to its correct rotation within the values after a fixed period if it is not moved by the gamer.) . However once the camera is again having proper values it must not go beyond the limited rotation. It is quite complicated and I can’t figure out how to solve it. Any help would be appreciated.