[Solved] How to make door open with torches,after enabling their visibility?

So, I have a door. And I have four torches.

I’d like this door to slide open when all four torches are lit.

I’m absolutely new to programming & blueprints, but this is what I’ve managed to get so far.

Problem is, with this blueprint, the sliding door animation plays each time I turn on a torch.
I want it to open ONLY after I turn on the fourth torch.

Any help would be much appreciated!

One way is to use an AND node. The AND node takes multiple boolean values as input and outputs a boolean. If all inputs are True, then the output is True. If even one input is False, then the output it False.

So instead of connecting your Is Visible node directly to the branch, make one Is Visible node for each torch and connect them all to the inputs of an AND node, then connect the output of the AND node to the Branch node. After that, the Branch should only evaluate true if all torches are visible at the same time.

Thank you!! Finally got it! :slight_smile: