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"

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.

alt text

Product Version: Not Selected
asdasdasd.png (460.3 kB)
more ▼

asked Sep 25 '17 at 12:46 AM in Blueprint Scripting

avatar image


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

2 answers: sort voted first

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.

more ▼

answered Sep 28 '17 at 07:35 AM

avatar image

92 6 11 13

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

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.

more ▼

answered Sep 28 '17 at 11:06 AM

avatar image

1.9k 53 40 200

(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