Getting a box to drive the highlight of whats inside

Im making a dino that highlights when looked at but I want it set up so that It highlights when you look on the box outside of the inner mesh. here is what I tried before posting

I figured it out you just need to change the collision box out for a regular cube and plug the cube into the target and uncheck the visibility of the cube.