# How to implement it into 4 buttons for the puzzle door

**URL:** <https://forums.unrealengine.com/t/how-to-implement-it-into-4-buttons-for-the-puzzle-door/462319>\
**Category:** Blueprint\
**Tags:** doors, unreal-engine, Blueprint, question\
**Created:** [March 10, 2020, 10:28pm UTC](https://forums.unrealengine.com/t/how-to-implement-it-into-4-buttons-for-the-puzzle-door/462319 "2020-03-10T22:28:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_37446e811](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_37446e811](https://forums.unrealengine.com/u/anonymous_user_37446e811)\
**Post date:** [March 10, 2020, 10:28pm UTC](https://forums.unrealengine.com/t/how-to-implement-it-into-4-buttons-for-the-puzzle-door/462319/1 "2020-03-10T22:28:28Z")

</div>

Hi all. I’m trying to make a door puzzle using 4 buttons. And I have difficulty understanding the flow of the program. Can anyone help ???

 ![297655-4.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/c/6cc909340c9f9cfcf52407c1e476f2a519c60454.png)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [March 10, 2020, 11:23pm UTC](https://forums.unrealengine.com/t/how-to-implement-it-into-4-buttons-for-the-puzzle-door/462319/2 "2020-03-10T23:23:01Z")

</div>

What’s the puzzle? ( It’s not obvious from the code ).

---

<div class="post-metadata">

**Author:** ![Doctor\_Kannon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/doctor_kannon/32/1130101_2.png) [@Doctor\_Kannon](https://forums.unrealengine.com/u/Doctor_Kannon)\
**Post date:** [March 11, 2020, 3:42am UTC](https://forums.unrealengine.com/t/how-to-implement-it-into-4-buttons-for-the-puzzle-door/462319/3 "2020-03-11T03:42:46Z")

</div>

Learn to write your own BPs. Otherwise, you’ll be posting here a lot.

Start with a simpler puzzle. Maybe start with just two buttons.

In fact, you could start with just a light switch – an On/Off button. There is even a tutorial for that.

More advice: instead of giving each button a numeric value, use a text value for clarity. What are those four states? Your code/BPs should self-document. That will make it easier for you (6 months later) and others to understand.

There might be an error in Pic2, Button 4 is always set to 1, regardless of what Button 1’s value is. It’s value will never change. If Button 4 is always set to a value of 1, then it isn’t needed. Unless it’s a red herring.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_37446e811](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_37446e811](https://forums.unrealengine.com/u/anonymous_user_37446e811)\
**Post date:** [March 11, 2020, 11:32am UTC](https://forums.unrealengine.com/t/how-to-implement-it-into-4-buttons-for-the-puzzle-door/462319/4 "2020-03-11T11:32:38Z")

</div>

Puzzle to press 4 buttons and the door will open.
