# Creating an electrical system with flow control

**URL:** <https://forums.unrealengine.com/t/creating-an-electrical-system-with-flow-control/393797>\
**Category:** Blueprint\
**Tags:** flow-control, unreal-engine, Blueprint, question\
**Created:** [May 16, 2017, 9:15pm UTC](https://forums.unrealengine.com/t/creating-an-electrical-system-with-flow-control/393797 "2017-05-16T21:15:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CorbisHETB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CorbisHETB](https://forums.unrealengine.com/u/CorbisHETB)\
**Post date:** [May 16, 2017, 9:15pm UTC](https://forums.unrealengine.com/t/creating-an-electrical-system-with-flow-control/393797/1 "2017-05-16T21:15:07Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![redbox](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@redbox](https://forums.unrealengine.com/u/redbox)\
**Post date:** [May 17, 2017, 3:43am UTC](https://forums.unrealengine.com/t/creating-an-electrical-system-with-flow-control/393797/2 "2017-05-17T03:43:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![CorbisHETB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CorbisHETB](https://forums.unrealengine.com/u/CorbisHETB)\
**Post date:** [May 18, 2017, 7:43pm UTC](https://forums.unrealengine.com/t/creating-an-electrical-system-with-flow-control/393797/3 "2017-05-18T19:43:27Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![CorbisHETB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CorbisHETB](https://forums.unrealengine.com/u/CorbisHETB)\
**Post date:** [November 14, 2018, 9:21pm UTC](https://forums.unrealengine.com/t/creating-an-electrical-system-with-flow-control/393797/4 "2018-11-14T21:21:59Z")

</div>

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