# 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:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b6746af](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b6746af](https://forums.unrealengine.com/u/anonymous_user_2b6746af)\
**Post date:** [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/1 "2014-07-17T03:07:54Z")

</div>

How do you create a normal door that will open when you press a key and close when you press it again? (on both sides) I only see sliding doors in the tutorials.

---

<div class="post-metadata">

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

</div>

Set Pivot point of the door mesh to the extreme end \> Use timeline to change door rotation on key press.

---

<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 17, 2014, 7:00am UTC](https://forums.unrealengine.com/t/how-can-i-create-a-door-that-will-open-and-close-when-a-key-is-pressed/288413/3 "2014-07-17T07:00:08Z")

</div>

Hey Angelocracy

If you look at content examples, search for button, under game (input examples), in the content browser. Open the button BP. You could adapt that and use with sliding door or any other type of door- use the button (and rescale it), in place of the trigger volume…

Hope that helps!

---

<div class="post-metadata">

**Author:** ![MaxWin163\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MaxWin163\_1](https://forums.unrealengine.com/u/MaxWin163_1)\
**Post date:** [July 18, 2014, 6:41pm UTC](https://forums.unrealengine.com/t/how-can-i-create-a-door-that-will-open-and-close-when-a-key-is-pressed/288413/4 "2014-07-18T18:41:51Z")

</div>

Youtube: How to make a Normal Door in Unreal 4 with BluePrints

---

<div class="post-metadata">

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

</div>

Can you show possibly a blueprint on that?

---

<div class="post-metadata">

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

</div>

Thank you, I will try that.

---

<div class="post-metadata">

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

</div>

Dosen’t work for me. I watched this video: [- YouTube](http://www.youtube.com/watch?v=NssDfP-qCkc&list=UUwI13FZ_jKMMPXpcwa_pDzg)

Which, is an update video of the normal door. It doesn’t make sense though. There is no reverse animation…

---

<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...
