# How do I enable Enhanced Input in a blueprint task?

**URL:** <https://forums.unrealengine.com/t/how-do-i-enable-enhanced-input-in-a-blueprint-task/1858208>\
**Category:** Blueprint\
**Tags:** behaviour-tree, unreal-engine, question\
**Created:** [May 16, 2024, 4:44am UTC](https://forums.unrealengine.com/t/how-do-i-enable-enhanced-input-in-a-blueprint-task/1858208 "2024-05-16T04:44:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Knuthnads](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Knuthnads](https://forums.unrealengine.com/u/Knuthnads)\
**Post date:** [May 16, 2024, 4:44am UTC](https://forums.unrealengine.com/t/how-do-i-enable-enhanced-input-in-a-blueprint-task/1858208/1 "2024-05-16T04:44:31Z")

</div>

Hopefully this is simple to answer, but how do I enable Enhanced Input in a blueprint task?

I’m using Behaviour Tree for a dialogue system and would simply like to skip dialogue when I press a button like so:

 ![Skip DIalogue](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/4/e/a4e8246c1b3274854ca9a3c9f88afa2cb285996a.png)

Currently I have it set up like this:

 ![Get Last Fired Input](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/0/f/40f5c8dff4ad6f229f104870530867015412d3e0.png)

This kinda works, but ‘Get Last Fired Input’ seems to have a several second delay before it recognizes the next button I press. For example, if I move the right thumbstick on my controller it thinks I’ve pressed the skip button, but if I wait a few seconds then move the thumbstick it doesn’t skip.

Edit: Just for extra context, the button to initiate dialogue with an NPC is the same button used to skip dialogue.

Is there a more obvious solution other than enabling Enhanced Input to trigger the Finish Execute node?

---

<div class="post-metadata">

**Author:** ![Knuthnads](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Knuthnads](https://forums.unrealengine.com/u/Knuthnads)\
**Post date:** [May 16, 2024, 7:52am UTC](https://forums.unrealengine.com/t/how-do-i-enable-enhanced-input-in-a-blueprint-task/1858208/2 "2024-05-16T07:52:55Z")

</div>

Okay so this works:

 ![Skip Dialogue Working](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/c/b/fcb2821b76290fef677f3f82eb6bd0a04ca6fb36.png)

Would still like to know whether it’s possible to enable enhanced input events in a blueprint task, but for now at least I can move on with this.

---

<div class="post-metadata">

**Author:** ![Quetzalcodename](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Quetzalcodename](https://forums.unrealengine.com/u/Quetzalcodename)\
**Post date:** [May 16, 2024, 10:02am UTC](https://forums.unrealengine.com/t/how-do-i-enable-enhanced-input-in-a-blueprint-task/1858208/3 "2024-05-16T10:02:31Z")

</div>

Hey @Knuthnads,

To fire directly inside the blueprint, you will need to enable the input using the enable input variable referencing your controller. If you are interacting with your character, I would highly suggest using a blueprint interface instead.

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/a/3/ea36a1cd2f933eb5c488f5f3c52fdabd4511f7fe.png)

Let me know if this works for you!

---

<div class="post-metadata">

**Author:** ![Quetzalcodename](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Quetzalcodename](https://forums.unrealengine.com/u/Quetzalcodename)\
**Post date:** [May 24, 2024, 10:38am UTC](https://forums.unrealengine.com/t/how-do-i-enable-enhanced-input-in-a-blueprint-task/1858208/4 "2024-05-24T10:38:41Z")

</div>

Hey @Knuthnads,

Checking in! Was the above the solution you needed?

---

<div class="post-metadata">

**Author:** ![Sumac\_Rhus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sumac\_Rhus](https://forums.unrealengine.com/u/Sumac_Rhus)\
**Post date:** [June 8, 2024, 9:58pm UTC](https://forums.unrealengine.com/t/how-do-i-enable-enhanced-input-in-a-blueprint-task/1858208/5 "2024-06-08T21:58:33Z")

</div>

I wasn’t the OP but I was searching for the same thing as them, and after testing it, that won’t work in a blueprint task specifically because “enable input” only works on actors, not behavior tree tasks.

Your recommendation to use an interface did solve the issue for me though! Here’s how I got the result I wanted using an interface instead of directly-implementing input in the task: First I set up an interface with a function called “Dialog Response” with just a generic “object” as input. I assigned the interface to both the behavior tree class and the first person character class where I have all my input handling.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/4/5/845de4f5ceba6d11d66d126e154a47407287ca4d.png)  
Then in the behavior tree class I got the player character and called the Dialog Response (message) function I just created in the interface, using a reference to self as the “current task.” For simplicity, I implemented the same event on the graph below, and hooked it up to the action I want the enhanced input to trigger.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/7/b/67be6a57624af67050727083a7b6c269b98e9346.png)  
Next in the first person character blueprint, I implemented the interface event and promoted the “current task” object input to a variable. Then I added an event for the enhanced input key I want to use, and went off the “started” pin so each press would only trigger one task. I validated that the variable wasn’t empty and called the interface event back at the dialog task, clearing the variable afterwards.
