[Solved] How do I trigger many lights all at once?

I’m working on parking garage map. I have a rectangular light model with an emissive color to give it a glow, a spot light, and a point light. I sucessfully made a trigger volume that enables visibility on all three of these elements on overlap. I want to put more of these lights around the ceiling of the parking garage (about 150). What should I do to make these work for all 150 lights? Blueprint for the single light model is below. I’m very new to this, so apologies if my blueprinting already goes against best practices lol.

I recommend learning about event dispatchers. This is an ideal situation where you want a light switch to ‘tell’ a number of blueprints to toggle. Here’s Zak’s video on blueprint communication, event dispatchers are the third portion he discusses.

https://www.youtube.com/watch?v=EM_HYqQdToE

When you place them all in the level and select them, search in the details for ‘tag’.

You’ll see there are component and actor tags. Set all the actor tags to ‘light’, for instance. Then in your BP you can use a GetAllActorsWithTag node plugged into a ForEach.

Thank you! This definitely put me on the right track. My successful BP is attached, plus a gif. I ended up making a BP class light model and did a for each loop. Ultimately I want each row of lights to turn on one after the other front to back, so I will experiment with that. But I have that foundation figured out.

Great. When I gave you this example, I assumed they were actors.

If they’re blueprints, you can go for dispatchers as Okarii says. But it might be a little over the top. You would also need to pass a parameter to the dispatcher to say which bank for lights you were talking to. If you were doing this many times per minute, dispatchers would be the way to do.

Be aware you can give them more than one tag, ie ‘light’ and then bank number. Also, if they’re blueprints you don’t need to ‘reach’ inside them like that, you can just call a custom event.

I haven’t explored dispatchers yet, but I did find a way to turn the 9 rows of lights on one row at a time using a sequence node and a get all actors of class node (basically I made 9 BPs for each row…probably not efficient, but it works.) The attached image shows 2 of the 9 pipelines.