Turn off the lights in the room by clicking on the switch

The one issue, Ace, with that set up is that a person could theoretically back up into the light switch and get the pop up to turn it on, without actually facing the switch.

Denton, what you want is to have the blueprint for MyCharacter draw a trace out from itself. Here is a screenshot of the blueprint that I have set up and working:

What this does is that every tick there is a trace shooting out from the center of your screen to X feet in front of you. It will stop if something is blocking it and it will return a hit result if it hits anything flagged to be WorldDynamic.

Anything that it hits will receive a message that it is being looked at from the blue print interface. At that point, you’ll just need to set up an event on the object regarding what to do when it is being looked at.

Let me know if you need help on that part, but at least this part should get you going. The only downside is that your main character is constantly doing a tick… and I’m not too sure how big of a performance hit that could be.

The upside is that you could use this wherever you want in your game, i.e. turning on lights, opening doors, etc, all based on if the player is looking at something.