# Two events triggering one action?

**URL:** <https://forums.unrealengine.com/t/two-events-triggering-one-action/317414>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE4, Blueprint, question\
**Created:** [May 4, 2015, 5:39pm UTC](https://forums.unrealengine.com/t/two-events-triggering-one-action/317414 "2015-05-04T17:39:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![RWhittingham](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RWhittingham](https://forums.unrealengine.com/u/RWhittingham)\
**Post date:** [May 4, 2015, 5:39pm UTC](https://forums.unrealengine.com/t/two-events-triggering-one-action/317414/1 "2015-05-04T17:39:52Z")

</div>

Hi guys, i’m new to this whole scripting thing so bear with me if i’m not making any sense or if this question has already been answered and im just looking for the wrong thing.

Basically i’m trying to allow the player to open a door by entering a certain range within a keypad and pressing the E key (2 seperate events). i have it working the only problem is the door opens when only one of the events (entering within the range or pressing the button) happens. how can i make it so that both events are required in order for the door to open?

Thanks

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [May 4, 2015, 5:57pm UTC](https://forums.unrealengine.com/t/two-events-triggering-one-action/317414/2 "2015-05-04T17:57:31Z")

</div>

Hi RWhittingham,

The following tutorial covers exactly what you’re attempting to do (Although it uses the F key).

> **[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 — https://unrealcommunity.wiki/! You will be able to find content from...

The particular part you would be looking for would be the ‘Making a Usable Door’ section near the bottom.

I hope this helps! Have a nice day,

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [May 12, 2015, 3:14pm UTC](https://forums.unrealengine.com/t/two-events-triggering-one-action/317414/3 "2015-05-12T15:14:01Z")

</div>

Hi RWhittingham,

Have you solved your issue? It’s been a while since we’ve heard from you so I will be closing this issue as resolved. If you do still require assistance, please feel free to comment and the issue will reopen.

Thank you

---

<div class="post-metadata">

**Author:** ![biubiuty3](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/biubiuty3/32/88719_2.png) [@biubiuty3](https://forums.unrealengine.com/u/biubiuty3)\
**Post date:** [November 30, 2015, 5:45am UTC](https://forums.unrealengine.com/t/two-events-triggering-one-action/317414/4 "2015-11-30T05:45:00Z")

</div>

you make me realize again the vital importance of _RTFM_ …

---

<div class="post-metadata">

**Author:** ![RWhittingham](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RWhittingham](https://forums.unrealengine.com/u/RWhittingham)\
**Post date:** [November 30, 2015, 7:44am UTC](https://forums.unrealengine.com/t/two-events-triggering-one-action/317414/5 "2015-11-30T07:44:43Z")

</div>

I realise I did not thank you for the reply , I must of got caught up getting it to work. Sorry about that, the tutorial helped a lot.

---

<div class="post-metadata">

**Author:** ![RWhittingham](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RWhittingham](https://forums.unrealengine.com/u/RWhittingham)\
**Post date:** [November 30, 2015, 7:45am UTC](https://forums.unrealengine.com/t/two-events-triggering-one-action/317414/6 "2015-11-30T07:45:07Z")

</div>

You don’t think I read the manual? As I said at the time I was completely new to scripting/programming of any kind. I knew what I wanted to do was possible I just didn’t know a way to do it. And the UE4 documentation is not the most informative/explanatory tool for a beginner nor is it easy to navigate and find what you’re looking for …
