# How can I use open a door when multiple buttons are pressed?

**URL:** <https://forums.unrealengine.com/t/how-can-i-use-open-a-door-when-multiple-buttons-are-pressed/1240257>\
**Category:** Programming & Scripting\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [July 26, 2023, 4:08am UTC](https://forums.unrealengine.com/t/how-can-i-use-open-a-door-when-multiple-buttons-are-pressed/1240257 "2023-07-26T04:08:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![N0baa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@N0baa](https://forums.unrealengine.com/u/N0baa)\
**Post date:** [July 26, 2023, 4:08am UTC](https://forums.unrealengine.com/t/how-can-i-use-open-a-door-when-multiple-buttons-are-pressed/1240257/1 "2023-07-26T04:08:21Z")

</div>

I’ve been working on a short demo to showcase for some work experience, I’m more used to c++, c# etc and Verse is something I’m struggling to wrap my head around.

I’ve worked on a couple of reusable systems like making text appear on the screen when you stand in an area, as well as a door that can open and close on a button press. However, I’m struggling with making that system work with multiple buttons. For one, it doesn’t seem like you can toggle buttons, nor can I find out if a button in an array was pushed. Can anyone point me in the right direction? I’d be fine with making a totally custom button device too, if anyone has any pointers on that.

---

<div class="post-metadata">

**Author:** ![ManualPotato](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/manualpotato/32/1144902_2.png) [@ManualPotato](https://forums.unrealengine.com/u/ManualPotato)\
**Post date:** [July 26, 2023, 9:41am UTC](https://forums.unrealengine.com/t/how-can-i-use-open-a-door-when-multiple-buttons-are-pressed/1240257/2 "2023-07-26T09:41:40Z")

</div>

Hey, you can use the `switch_device` for a toggle button. As for tracking that in Verse it should be a case of putting them in an array (or similar) and checking the state on all using `GetCurrentState`.

---

<div class="post-metadata">

**Author:** ![N0baa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@N0baa](https://forums.unrealengine.com/u/N0baa)\
**Post date:** [July 26, 2023, 10:56am UTC](https://forums.unrealengine.com/t/how-can-i-use-open-a-door-when-multiple-buttons-are-pressed/1240257/3 "2023-07-26T10:56:41Z")

</div>

Thanks, I eventually did find that and felt pretty stupid for missing it lol

---

<div class="post-metadata">

**Author:** ![ManualPotato](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/manualpotato/32/1144902_2.png) [@ManualPotato](https://forums.unrealengine.com/u/ManualPotato)\
**Post date:** [July 26, 2023, 11:26am UTC](https://forums.unrealengine.com/t/how-can-i-use-open-a-door-when-multiple-buttons-are-pressed/1240257/4 "2023-07-26T11:26:31Z")

</div>

No worries, I think I wondered the same thing originally looking for something like a “Button Toggles” option on the button device.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [August 25, 2023, 11:27am UTC](https://forums.unrealengine.com/t/how-can-i-use-open-a-door-when-multiple-buttons-are-pressed/1240257/5 "2023-08-25T11:27:15Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
