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"

Need help and ideas for my lightswitch and lamp system!

Hello! So I have tried to make a system that makes level design easier for me when creating a big modern house. I have lightswitches that are going to be placed in the house and each of them has a specific lamp connected to it. This is what I have so far: alt text alt text

However when I add more than one lightswitch (each time I do this I change lampref variable to a lamp in the scene) the toggle effect only works on the last placed lamp-and-switch-combo and stops working on the previously placed.

I am fairly new to blueprint, so any help is appreciated! If you have examples of a similar system that actually works I like to hear about it! Thanks :D

Product Version: Not Selected
skärmklipp.png (939.7 kB)
skärmklipp2.png (1.2 MB)
more ▼

asked Mar 20 '15 at 09:38 AM in Blueprint Scripting

avatar image

11 1

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

1 answer: sort voted first

What you try to do could work like this but I assume you set somewhere a default input right? You should only enable that if the player is nearby and also this way only allows for a single lamp combo.

I recently did a video about something very similar. You just have to replace the "Get All Actors of Class" I used with your variable and don't even need a script for your light. Maybe that already helps you far enough.


Cheers :)

more ▼

answered Mar 20 '15 at 11:38 AM

avatar image

5.9k 291 86 293

avatar image Bellsibub Mar 21 '15 at 09:58 AM

Thanks! You tutorial was great and helped a lot :D I had to do some work arounds for it to work on my game, but all in all it works now!

(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