Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Turning off multiple lights with a single Trigger?

Hello fellow UE Users,

I'm currently trying to get the following working:

I have a single Blueprint called "Light1" (a model, a light source and a sound). I placed it a couple of times in a map. I have another Blueprint called "TriggerLight" which currently only has a Trigger Volume.

I'm trying to get the following working:

The player hits TriggerLight and ALL instances of Light1 turn off. Maybe even plays a sound.

I'm really stuck with "broadcasting" this to all instances of Light1.

Any help would be highly appreciated.



Product Version: UE 4.7
more ▼

asked Jun 09 '15 at 09:05 PM in Blueprint Scripting

avatar image

11 4 5 6

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hey Maxunit,

I would suggest taking a look at our Content Examples, specifically the 'Blueprint _Communication' map. 1.4 - Communicating with all actors of a specific class will give you the answers that you need regarding turning on and off multiple lights with one single trigger.

Basically, you're going to need to set up an 'OnComponentBeginOverlap (Trigger Collision)' as well as an 'OnComponentEndOverlap (Trigger Collision)', which will need to be added into a flip/flop, set to a 'Scalar Parameter Value', attached to 'Get All Actors of Class' and 'For Each Loop' you'll need to 'Cast to (Blueprint)' and set an event to toggle the light on or off. This will require two sets of each node you're setting up mostly, since it's for turning on and off a light, or multiple lights.

Content Example 1.4

contentexamples.jpg (408.2 kB)
more ▼

answered Jun 09 '15 at 09:22 PM

avatar image Maxunit Jun 09 '15 at 10:10 PM

Hello Samantha,

Thank you a lot for the help :)

I will try it out asap.

avatar image Samantha Sutton ♦♦ STAFF Jun 10 '15 at 01:50 PM

You're very welcome. If you have any further questions, please let us know! Have a great one!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question