How to trigger box when looking at object?

Hello, I’m trying to trigger a collision box where it is not only triggered by the player standing in the collision box, but by looking at the mesh, example: a door. I understand I can achieve this with line tracing but I have many different objects with trigger boxes. Is there a simpler way? Can I do this by changing the settings in the trigger box?