x

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"

Creating an electrical system with flow control

Hello everyone!

The game I'm currently creating is a horror game set in an electrical facility underground. I want to be able to control lights and doors based on common in-game switches, breakers and by the state of the main transformer.

For example, one floor of the map is powered, and you can turn on and off lights with a switch on the wall. But in another floor has no transformer running, thus the lights should always be kept off no matter how many times you press the light switch. Like this, I want to create a branching system where all of the branches have to be "true" for the light to work.

I thought it would be best to give all kinds of switches a boolean output, and all lamps a boolean input. Then, in the level blueprint, I can connect these as I wish with flow control. Howerever, I'm new to blueprints, and i don't really know how to make the blueprints communicate. Is there a way to check if an actor (the switch) in the level is true or false? How would you do that?

Product Version: UE 4.13
Tags:
more ▼

asked May 16 '17 at 09:15 PM in Blueprint Scripting

avatar image

CorbisHETB
30 5 6 9

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

2 answers: sort voted first

Aaand finally managed to work something out. Let me know if you're asking for the same thing.

more ▼

answered Nov 14 '18 at 09:21 PM

avatar image

CorbisHETB
30 5 6 9

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

You should look blueprints communication examples in Content Examples project, in map "Blueprints Communication". There are good examples of switching lights for you.

more ▼

answered May 17 '17 at 03:43 AM

avatar image

redbox
4.3k 81 19 104

avatar image CorbisHETB May 18 '17 at 07:43 PM

I have looked, but they don't really work how I want my system to be set up. It seems like different inputs could interfere, kind of like a toggle. But I want the entire system to be connected. All I really need is to be able to make a public value from each object in the level if it is activated or not, and the level blueprint should check if that value is true or false. But I don't really know how to do that.

(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