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?

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

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.

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