Trigger switches next to each other individually

I’m having problems with blue prints. I’m trying to get switches very close to each other to trigger different lights. How do i make a trigger activate ONLY wen the crosshair is pointing at it without triggering all of them in the area with the same key (E)?
Here’s a picture of the switches i’m trying to blueprint and how close together they are. There’s the lamp and both switches on the wall.
Then there’s also the door.
Thanks!

On button press, do a line trace.

Here you go: https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/UseRaycasts/Blueprints/index.html

I would use a Single Line Trace by Object(https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/UseRaycasts/Blueprints/index.html).
Here’s a pic from my projects blueprint(It works without error for me, but may not be the best way to do it. I’m still learning unreal4.)



thanks i’ll give it try

the problem is i don’t know exactly how to make that interact with a light. been going about it for an hour now and i still have no idea. those tutorials are useful but too much information and just confused the hell out of me. i have no idea what to use to have it interact with a button that then interacts with a light on the map

also, the trace line seems to be firing off behind me instead of in front of me. i followed the instructions to the letter and don’t know why this happens

update: nevermind this part, i was using vector * vector instead of vector + vector