# integrate the e-key

**URL:** <https://forums.unrealengine.com/t/integrate-the-e-key/488575>\
**Category:** UI\
**Tags:** button, key, overlap, unreal-engine, question\
**Created:** [September 9, 2021, 1:17pm UTC](https://forums.unrealengine.com/t/integrate-the-e-key/488575 "2021-09-09T13:17:38Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Godlike0207](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Godlike0207](https://forums.unrealengine.com/u/Godlike0207)\
**Post date:** [September 9, 2021, 1:17pm UTC](https://forums.unrealengine.com/t/integrate-the-e-key/488575/1 "2021-09-09T13:17:38Z")

</div>

Is there any other better way to integrate the e-key into my blueprint? It doesn’t work properly.

 ![348300-test2021.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/9/a/69a624e472a892aa9f5332ef58d20f9cd4edb879.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:** [September 9, 2021, 3:54pm UTC](https://forums.unrealengine.com/t/integrate-the-e-key/488575/2 "2021-09-09T15:54:39Z")

</div>

I don’t see any E key there, but perhaps you mean the ‘use concept’ generally.

There’s definitely an ‘uptick’ in this sort of code appearing on the forums recently, I’m assuming that means a popular utube vid.

By far, the best way to implement interaction with game objects, is by using a line trace from the player and a blueprint interface to talk to the actor.

That way, you don’t have to worry about overlap volumes and the like, just walk up to thing a fire a line trace - done.

Tell me if you want to know more.

EDIT: I’ll just point out, the main problem with the overlap method, is you can walk up to something and use it with your backside… which you might want, but…

---

<div class="post-metadata">

**Author:** ![Godlike0207](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Godlike0207](https://forums.unrealengine.com/u/Godlike0207)\
**Post date:** [September 9, 2021, 4:55pm UTC](https://forums.unrealengine.com/t/integrate-the-e-key/488575/3 "2021-09-09T16:55:32Z")

</div>

Many thanks for the answer. “Event InteractPawn” is e-key. Unfortunately I have to do with overlapping volumes, it is very important. I have already tried to integrate E Key into my blueprint (see pic), it doesn’t work properly.

---

<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:** [September 9, 2021, 5:43pm UTC](https://forums.unrealengine.com/t/integrate-the-e-key/488575/4 "2021-09-09T17:43:19Z")

</div>

Ok, if you have to use it, I’d get rid of the flip flop and change the box overlaps to OnActorBeginOverlap ( unless you have to overlap different boxes separately ).

Component overlap can fire multiple times when you walk in and away, which means the flip flop can sometimes be running back to front.

---

<div class="post-metadata">

**Author:** ![Godlike0207](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Godlike0207](https://forums.unrealengine.com/u/Godlike0207)\
**Post date:** [September 9, 2021, 6:05pm UTC](https://forums.unrealengine.com/t/integrate-the-e-key/488575/5 "2021-09-09T18:05:35Z")

</div>

can you show me which method is better than flip-flop? I’ve already tried everything, have no idea.

---

<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:** [September 9, 2021, 7:12pm UTC](https://forums.unrealengine.com/t/integrate-the-e-key/488575/6 "2021-09-09T19:12:16Z")

</div>

Something like this maybe:

 ![348302-screenshot-1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/9/8/1982c1443084761df687979acb83bb521a998d83.jpeg)

---

<div class="post-metadata">

**Author:** ![Godlike0207](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Godlike0207](https://forums.unrealengine.com/u/Godlike0207)\
**Post date:** [September 9, 2021, 7:46pm UTC](https://forums.unrealengine.com/t/integrate-the-e-key/488575/7 "2021-09-09T19:46:15Z")

</div>

Thanks, but I’ve already tried this method, but unfortunately it didn’t work. E-Key should only work in the OnActorBeginOverlap. In the OnActorEndOverlap, the connection should be terminated automatically without an E-Key.

---

<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:** [September 9, 2021, 8:13pm UTC](https://forums.unrealengine.com/t/integrate-the-e-key/488575/8 "2021-09-09T20:13:48Z")

</div>

That’s weird, cause I just tested it :-/

What happens for you?

---

<div class="post-metadata">

**Author:** ![Godlike0207](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Godlike0207](https://forums.unrealengine.com/u/Godlike0207)\
**Post date:** [September 9, 2021, 8:26pm UTC](https://forums.unrealengine.com/t/integrate-the-e-key/488575/9 "2021-09-09T20:26:33Z")

</div>

E-Key also works in the OnActorEndOverlap, but I don’t want that. Can you show me how you did it?

---

<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:** [September 10, 2021, 6:49am UTC](https://forums.unrealengine.com/t/integrate-the-e-key/488575/10 "2021-09-10T06:49:58Z")

</div>

After end overlap, the gate is closed, so the key can’t work.

---

<div class="post-metadata">

**Author:** ![Godlike0207](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Godlike0207](https://forums.unrealengine.com/u/Godlike0207)\
**Post date:** [September 10, 2021, 7:39am UTC](https://forums.unrealengine.com/t/integrate-the-e-key/488575/11 "2021-09-10T07:39:48Z")

</div>

I then have to look for another method that does not work properly here.
