“Hold E to Interact” in Blueprints: Hold to Drink, Eat, Open or Use, with a Progress Bar

Table of Contents

Works in Unreal Engine 5.1 to 5.8 (Enhanced Input). Updated November 2026.

Quick answer: use the Hold trigger and its Ongoing event.

  1. Open your Input Action (for example IA_Interact). Under Triggers, click +, choose Hold, set Hold Time Threshold to 2 and tick Is One Shot.
  2. In your character, add the EnhancedInputAction IA_Interact event.
  3. Started: show the progress bar. Ongoing: Set Percent to Elapsed Seconds ÷ 2. Triggered: drink, eat or open, then hide the bar. Canceled: hide the bar.

Why nothing happens while you hold

With a Hold trigger, Triggered fires only once the key has been held for the full Hold Time Threshold. Code on Triggered can’t run “during” the hold. The events you get:

EventWhen it firesUse it to
StartedThe frame you press the keyShow the bar, start an animation
OngoingEvery frame while held, before the thresholdFill the bar
TriggeredWhen the threshold is reachedDo the action
CanceledYou let go too earlyHide and reset the bar

Method 1: Hold trigger (recommended)

Step 1: Set up the input

  1. Open IA_Interact. In Triggers, add Hold.
  2. Set Hold Time Threshold (seconds) and tick Is One Shot, so it fires once, not every frame after the threshold.

You can also add triggers on the key inside the Input Mapping Context. Put them in one place so you don’t stack two.

Step 2: Add the progress bar

  1. In your HUD Widget Blueprint, add a Progress Bar named HoldBar, tick Is Variable, and set its Visibility to Hidden.
  2. In the character’s Event BeginPlay, Create Widget for the HUD, Add to Viewport, and promote the return value to a variable.

To show the bar over the object instead, use a Widget Component.

Step 3: Wire the events

  1. On the EnhancedInputAction IA_Interact node, click the small arrow at the bottom to show Elapsed Seconds.
  2. Started: check you’re near something usable (see below), then Set Visibility on HoldBar to Visible.
  3. Ongoing: Set Percent on HoldBar with Elapsed Seconds divided by your hold time. Percent runs from 0 to 1.
  4. Triggered: run the action, then hide the bar.
  5. Canceled: Set Percent to 0 and hide the bar.

Store the hold time in a float variable so the division and the trigger setting match.

Method 2: Pressed and released with a timer

Use this if you want the timing in your Blueprint, or the same input does other things.

  1. Leave IA_Interact with no triggers. Started fires on press and Completed on release.
  2. Started: Set Timer by Event with Time = your hold time and Looping off. Promote Return Value to HoldTimer. Connect the red Event pin to a custom event FinishInteract that does the action and hides the bar.
  3. Triggered fires every frame while held: Set Percent with Get Timer Elapsed Time by Handle (HoldTimer) ÷ hold time.
  4. Completed: Clear and Invalidate Timer by Handle (HoldTimer), then reset and hide the bar.

Only interact when something is in range

Give the usable object (or a water volume at a lake edge) a collision box. In its On Component Begin Overlap, cast Other Actor to your character and set the character’s CurrentInteractable variable to Self. Clear it in On Component End Overlap. Then put an Is Valid check on CurrentInteractable before you show the bar and before you run the action.

FAQ

How do I drink a sip every half second while holding?

Use a Pulse trigger with Interval set to 0.5. Triggered then fires every 0.5 seconds while the key is held.

My Hold event never fires at all.

Check that the Input Mapping Context with this action is added to the player, and that the event uses the same Input Action asset you edited.

Can I play an animation while holding?

Yes. Start a montage on Started and stop it on Canceled, so it ends if the player lets go early.

Related articles