How to make a working lightswitch?

What I need exactly is a way to move next to a light switch and hit β€œe” to toggle ONE light off that would be on another side of a room.

Whenever I try to do this, It ends up turning ALL the lights in the room off when I only need one off.

Screenshots of the blueprint are preferred. Thank you so much :slight_smile:

Take a look at the starter content I believe there is an example of one in there also these tutorials should get you in the right direction as well:

https://docs.unrealengine.com/latest/INT/Videos/PLZlv_N0_O1gZg3dTMetmsfm_s4lb4-Tg0/uJbfSWzfg7c/index.html
https://docs.unrealengine.com/latest/INT/Videos/PLZlv_N0_O1gY35ezlSQn1sWOGfh4C7ewO/EFXMW_UEDco/index.html
https://docs.unrealengine.com/latest/INT/Videos/Blueprints/index.html

That’s not what I was looking for. These tutorials did the same as everything else I tried, It turned the light on from any distance; I need it so I can only turn on the light while at the light switch.

Use a collision box and build upon the above tutorials by adding on begin overlap with this box collision enable input and on end overlap (player not within the area of the switch) disable input. You can further expand upon the tutorials/demos by using a blueprint interface and so on…

Do you happen to have a blueprint example? I’m kind of on a deadline. Much appreciated, thanks :slight_smile:

hey. its quite simple :

1 Like

u just have to drag the actor in and if the light is on , turn the visibility to false

Thank you so much, my group is relieved.

Thank you this helped so much