# Hold E to Drink/Eat

**URL:** <https://forums.unrealengine.com/t/hold-e-to-drink-eat/2700761>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [February 19, 2026, 2:12am UTC](https://forums.unrealengine.com/t/hold-e-to-drink-eat/2700761 "2026-02-19T02:12:38Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![RedGrimnir](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/redgrimnir/32/1054683_2.png) [@RedGrimnir](https://forums.unrealengine.com/u/RedGrimnir)\
**Post date:** [February 26, 2026, 11:08pm UTC](https://forums.unrealengine.com/t/hold-e-to-drink-eat/2700761/21 "2026-02-26T23:08:40Z")

</div>

So if you are not getting any events (something not printing ) then its somewhere around the  
CreateScanner and EvaluateScanner scripts something can be missing.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/5/d/15d4e156220a2ca061d094ae8cd157fb6fe2acf5.jpeg)  
Make sure you have a radius set properly 500 1000, profilename is correct

Make sure you are running timer with the correct function name UpdateScanner

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/8/d/b8d596c28e7b868c33d3541de879a57080e1aa39.png)

Make sure UpdateScanner function running everytime with loop

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/6/a/26a6bd49cf3dcd4977998c688e5a6612d951ce40.jpeg)

you can check with breakpoint of from debug to see where your function is failing.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/8/b/78bf301640bb66ff64ef7f80e26270f443f3af34.png)

---

<div class="post-metadata">

**Author:** ![JackBeStupid](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jackbestupid/32/1071493_2.png) [@JackBeStupid](https://forums.unrealengine.com/u/JackBeStupid)\
**Post date:** [February 28, 2026, 8:30pm UTC](https://forums.unrealengine.com/t/hold-e-to-drink-eat/2700761/22 "2026-02-28T20:30:07Z")

</div>

Hey there! I fixed it to an extent, so we are actually getting notified what our current interaction is now! I fixed that issue, it was some code I had messed up

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/6/2/9629661f6a01e28f1320866aae66e7de7020d2d9.png)  
Now my only issue is the number is still not changing on the Actor to be interacted on. 😂

---

<div class="post-metadata">

**Author:** ![RedGrimnir](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/redgrimnir/32/1054683_2.png) [@RedGrimnir](https://forums.unrealengine.com/u/RedGrimnir)\
**Post date:** [February 28, 2026, 8:57pm UTC](https://forums.unrealengine.com/t/hold-e-to-drink-eat/2700761/23 "2026-02-28T20:57:34Z")

</div>

Perfect, thats a step forward. Now we have the correct interaction selected on our system and thats the most important part.

So when you call the components TryInteract and you hold button, it should fundamentally first run this SetInteractionState (Started)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/a/a/7aa50f55e2d191d594225cc6aa927fee9e4d0069.jpeg)

and after should go in here

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/9/4/49429202860536c7f1f2edb9f2cec7eccd5fc9cd.jpeg)

and call this timer.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/0/2/602a9f6c41ed74105e0961cfa575f6f12251b17f.png)

Which calls again another event

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/6/0/f60aca430889a0a6ad25e4314fb310c1b9462f85.png)

and comes back to same function

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/9/d/e9d36a6b0cb55af4cadda626a121109303231de6.png)

Now we are on execution function running. You can make additional print on handle execution to see if everything is coming till this stage.  
I can see from your log but be sure

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/4/2/6427765ad5c403a0787efbf72ac9e78e700fb7dd.png)

So just over here a small explanation, why we run first SetInteractionState(Started) then loop outside come back in as SetInteractionState(Executed). Simple answer is cause we are trying to do it with BP unfortunately I cant create a delegate to a specific function with a variable in BP thats why we loop, we could have created another event but its ok.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/f/0/8f07fce17a134558b0ba85191cc0d9d5ce841089.png)

On this stage I think if you did everything already this new print string should even fire

A subtle detail if you are not familiar with BP logic and interfaces there would be 2 functions in your interface, be sure that the function with the “message” is selected (the one with the envelope)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/e/b/4eb65e7c30bda863ea097506a2958846be1d0bc3.png)

---

<div class="post-metadata">

**Author:** ![JackBeStupid](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jackbestupid/32/1071493_2.png) [@JackBeStupid](https://forums.unrealengine.com/u/JackBeStupid)\
**Post date:** [February 28, 2026, 10:14pm UTC](https://forums.unrealengine.com/t/hold-e-to-drink-eat/2700761/24 "2026-02-28T22:14:41Z")

</div>

Hey! So I set up a breakpoint and a print string on this line here

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/e/b/debd6dac81d2d298818fd0511b8593a248a21933.png)

And I went to interact with out little test actor. And the breakpoint didnt process, nor did the print string. So I assume there is something wrong related to it? Any suggestions?

---

<div class="post-metadata">

**Author:** ![RedGrimnir](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/redgrimnir/32/1054683_2.png) [@RedGrimnir](https://forums.unrealengine.com/u/RedGrimnir)\
**Post date:** [February 28, 2026, 10:24pm UTC](https://forums.unrealengine.com/t/hold-e-to-drink-eat/2700761/25 "2026-02-28T22:24:04Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/2/a/22ae57c230228c8359818b331d261f9790e94563.png)

Select the correct class

---

<div class="post-metadata">

**Author:** ![JackBeStupid](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jackbestupid/32/1071493_2.png) [@JackBeStupid](https://forums.unrealengine.com/u/JackBeStupid)\
**Post date:** [February 28, 2026, 10:28pm UTC](https://forums.unrealengine.com/t/hold-e-to-drink-eat/2700761/26 "2026-02-28T22:28:23Z")

</div>

Oh, wow. I cannot believe that’s what I had forgot to do this entire time 🤣🤣🤣

Thank you so much!

I presume now I could move on with setting up animation/effects for the interaction?

---

<div class="post-metadata">

**Author:** ![RedGrimnir](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/redgrimnir/32/1054683_2.png) [@RedGrimnir](https://forums.unrealengine.com/u/RedGrimnir)\
**Post date:** [February 28, 2026, 10:46pm UTC](https://forums.unrealengine.com/t/hold-e-to-drink-eat/2700761/27 "2026-02-28T22:46:43Z")

</div>

No worries, think its good to go, till you encounter a design constraint in the system.

You can do animation, binding the events.

When an interaction is nearby you can show an interface, even pass details to umg follow actor in world if you prefer.

Its possible to do many things with it already a fair enough press E to Interact prototype.

In your game, in future if you encounter use cases like.

- As a player I want to see counts of interacted item on ui.
- As a player I want to see the name of the item I am interacting with.
- As a player I want to see localized interaction names.
- As a player I want to interact with the items that I am directly looking to.
- As a player I want to shoot an interaction to interact.
- As a player I want contextual animation before interaction.
- As a player I want to interaction disabled with different gameplay contexts.
- As a player I want to use an item, drink a potion to increase my interaction range.
- As a player I want to interact with the things that is not around me but far away.

When you hit a use case that can not be achieved with the current architecture, it can be time to iterate overall system. Till then its good to go.

Happy developing!

---

<div class="post-metadata">

**Author:** ![JackBeStupid](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jackbestupid/32/1071493_2.png) [@JackBeStupid](https://forums.unrealengine.com/u/JackBeStupid)\
**Post date:** [February 28, 2026, 10:53pm UTC](https://forums.unrealengine.com/t/hold-e-to-drink-eat/2700761/28 "2026-02-28T22:53:51Z")

</div>

Thank you friend! ❤

---

<div class="post-metadata">

**Author:** ![RedGrimnir](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/redgrimnir/32/1054683_2.png) [@RedGrimnir](https://forums.unrealengine.com/u/RedGrimnir)\
**Post date:** [February 28, 2026, 10:57pm UTC](https://forums.unrealengine.com/t/hold-e-to-drink-eat/2700761/29 "2026-02-28T22:57:48Z")

</div>

Thank you too! Would be great if you can mark post 8 as answer so it can become more accessible to community readers with search.

[Previous page](https://forums.unrealengine.com/t/hold-e-to-drink-eat/2700761.md?page=1)
