# How can I create a door that will open and close when a key is pressed?

**URL:** <https://forums.unrealengine.com/t/how-can-i-create-a-door-that-will-open-and-close-when-a-key-is-pressed/288413>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [July 17, 2014, 3:07am UTC](https://forums.unrealengine.com/t/how-can-i-create-a-door-that-will-open-and-close-when-a-key-is-pressed/288413 "2014-07-17T03:07:54Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![robbiecooper](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@robbiecooper](https://forums.unrealengine.com/u/robbiecooper)\
**Post date:** [July 20, 2014, 7:48am UTC](https://forums.unrealengine.com/t/how-can-i-create-a-door-that-will-open-and-close-when-a-key-is-pressed/288413/8 "2014-07-20T07:48:57Z")

</div>

You could make the door components part of the button BP. You’ve probably seen this, but in case you havent, its a really good resource;

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

---

_[View the full topic](https://forums.unrealengine.com/t/how-can-i-create-a-door-that-will-open-and-close-when-a-key-is-pressed/288413)._
