Turning off specific blueprints from another blueprint

Create object variable (blue color of icon) of class of thing that turns on and off, make it accessible everywhere (dont know hot to do it in blueprint, bu read ou settings :p). Now when you place object on the level, in “Details” tab you will see that variable which you can set to any object that is on the level (so this wont work with dynamic spawned objects). Inside blueprint you make code which turns of off something in object that you said in that variable. You could also use array variable to operate multiple objects in single switch.

Hello,

At the moment I have lots of the same blueprint in my scene, which is the light and a lightswitch blueprint that picks up when the player character enters it and presses a certain key.

I’m wondering how I would make a light switch that toggles the visibility on other blueprints that I have (The Lights), in a way that I could specify which light switch turns off which lights?

Here are the two blueprints at the moment.

Thanks,
Ben

Hey, I used the Array method to use the lightswitch to control specific lights, works really well! Now I just need to figure out which is the best way to detect collision with a light source…

In your blueprint with the light source, you could add a sphere collision volume and set it to your attenuation radius (for example).