How to block a box collision with a wall?

You may need to do a raytrace on a timer to check if the player has become obscured and stop the camera from tracking you.