Switch button to turn on/off several lights

Hi, The reason it isn’t recommended to do it this way and why youtube videos would use other methods is because it’s not modular, each time you want a switch to control a light you’d need to add it in blueprints like the way you’ve described.

The simplest way to adapt what you have to control multiple lights would be to change your Light Object variable into an Array of Light Objects and expose on spawn.
Then in blueprint:
Get LightsArray-> For Each Loop (Connected between print string and Set Intensity) → Drag Off Array Element → Point Light Component → Set Intensity.

Then in the editor focusing your light switch, with the LightsArray you can add the lights you want your switch to control by adding an entry to the array and using the eyedropper tool to click on the Light Actor in the editor.

This method would allow you to create clusters of lights that a switch controls.

Another method would be to use a Delegate, especially if you want the switch to control all lights. I would recommend learning about them.