Creating an electrical system with flow control

CorbisHETB
Tue, 16 May 2017 21:15:07 +0000
Blueprint

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?

4 posts - 1 participant