How do I make it so that one switch disables one light?

Hey guys. I’m having troubles with blueprint with lights and triggerbox.

I watched a youtube tutorial to set up a light with a switch. It was going well, pressing E would turn it on, and off. I made a big house, with different rooms and different Point Lights/ Trigger Boxes. I just noticed now, after making like 5 lights, that one switch turns on lights on the whole house. How do I get around that? Want 1 switch to turn on 1 light, not all.

Your problem is that you’re using the same bool variable for all the lights. When you’re setting it to true after a specific overlap, you are setting it to true for all your lights, and therefore they are all getting their intensity changed.

You might want to look at changing the setup with the overlap bool and E Input Event. Having the two E presses (That look like they might be consuming input from one another as well) won’t both hit.

You might want to create a PointLight variable and set that to the overlapping actor when there is an overlap event.

Then on the E Event, you can use the new variable you created to change the intensity. You might also want to check the validity of the variable when pressing E and also setting it to be Null when the overlap ends.