# Task wait delay never finishing

**URL:** <https://forums.unrealengine.com/t/task-wait-delay-never-finishing/431719>\
**Category:** AI\
**Tags:** task, unreal-engine, Blueprint, question\
**Created:** [August 15, 2018, 9:11pm UTC](https://forums.unrealengine.com/t/task-wait-delay-never-finishing/431719 "2018-08-15T21:11:52Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Numisi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Numisi](https://forums.unrealengine.com/u/Numisi)\
**Post date:** [August 15, 2018, 9:11pm UTC](https://forums.unrealengine.com/t/task-wait-delay-never-finishing/431719/1 "2018-08-15T21:11:52Z")

</div>

Hello everyone!  
I started yesterday using behaviour trees, after watching a good deal of tutorials. All looks neat and functional but I have had an inexplicable problem: making custom tasks, the “Task Wait Delay” node never finishes! If I use the normal exec output everything’s fine (but obviously it doesn’t wait at all), but if I use the On Finish exec it never ends, regardless of the time set.  
I’m uploading an image of the task so you can tell me if I grossly misunderstood the node working or something else.  
Thanks to everyone for your help!

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/d/f/0dfac781a08766d9a519ee4f69f2357f666ed1b1.jpeg)

---

<div class="post-metadata">

**Author:** ![dZh0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dZh0](https://forums.unrealengine.com/u/dZh0)\
**Post date:** [August 16, 2018, 8:44am UTC](https://forums.unrealengine.com/t/task-wait-delay-never-finishing/431719/2 "2018-08-16T08:44:00Z")

</div>

I cant open the editor in the moment but is it possible that you run execute on the task again before it is finished?

Select Event Receive Execute and check the options in the details. If I remember correctly there should be a setting if the task is allowed to reset before completing execution.

---

<div class="post-metadata">

**Author:** ![Numisi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Numisi](https://forums.unrealengine.com/u/Numisi)\
**Post date:** [August 16, 2018, 10:16am UTC](https://forums.unrealengine.com/t/task-wait-delay-never-finishing/431719/3 "2018-08-16T10:16:05Z")

</div>

Selecting the event itself doesn’t give any details, but in the behavior tree I found in the task details “Ignore restart self”, but, alas, it didn’t change anything.

---

<div class="post-metadata">

**Author:** ![dZh0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dZh0](https://forums.unrealengine.com/u/dZh0)\
**Post date:** [August 16, 2018, 12:03pm UTC](https://forums.unrealengine.com/t/task-wait-delay-never-finishing/431719/4 "2018-08-16T12:03:20Z")

</div>

Is it possible that some of the values (DelayInizio…) are not set?

Can you add a breakpoint on your TaskWaitDelay and set your DebugFilter to tell us what exactly happens.

---

<div class="post-metadata">

**Author:** ![Numisi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Numisi](https://forums.unrealengine.com/u/Numisi)\
**Post date:** [August 16, 2018, 1:11pm UTC](https://forums.unrealengine.com/t/task-wait-delay-never-finishing/431719/5 "2018-08-16T13:11:31Z")

</div>

I tried removing the link between variables and time already, and setting the delay time to 0 or 1, but none worked, so it’s not a value problem… _I guess_…  
I added a breakpoint and, yeah, the task gets stuck at the delay node, the blueprint debugger just says that too, while the behavior tree is in the wait node (the one to delay between behaviour loops): the task appears to have failed, because the behavior tree isn’t feeding that node, and hasn’t executed the next node in the sequence, so, all decorators fail to pass because the next node was to set a bool that would make the behavior continue working.

> and set your DebugFilter to tell us what exactly happens.

Soooooo… My limited knowledge of unreal debugging tools led me to search on google what the DebugFilter is, but I had no luck in finding it, so I have no idea what tool is that, and I couldn’t find it searching around in the engine (that is not surprising considered its size).  
I’m sorry for being such a pain…

I leave you an image of the tree in case I wasn’t clear!

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/2/6/526e68ff1d2513a432004c78b0263b7c28bf9f03.jpeg)

---

<div class="post-metadata">

**Author:** ![Numisi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Numisi](https://forums.unrealengine.com/u/Numisi)\
**Post date:** [August 16, 2018, 2:26pm UTC](https://forums.unrealengine.com/t/task-wait-delay-never-finishing/431719/6 "2018-08-16T14:26:03Z")

</div>

I JUST SOLVED **MY** ISSUE: I was typing ‘wait’, and that came out with the label “this is functionally the same as a standard delay node”, so I thought it was the Delay node for tasks. Now I wrote in another blueprint wait, and the same command came out, so I rewrote delay instead, and normal delay node came out. Using normal delay everything works fine, I just thought that that was the delay node for tasks and I couldn’t use the normal one, my bad.  
But the question persists: why that node didn’t work? How is it to be used correctly? And what is its right use?

---

<div class="post-metadata">

**Author:** ![redhousegames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/redhousegames/32/461590_2.png) [@redhousegames](https://forums.unrealengine.com/u/redhousegames)\
**Post date:** [December 17, 2018, 2:25am UTC](https://forums.unrealengine.com/t/task-wait-delay-never-finishing/431719/7 "2018-12-17T02:25:17Z")

</div>

I had a similar problem. Like you said, a delay node will also work, however, if you want to use the Task Delay Node, you need to:

1. Open up the advanced display for the node
2. Connect a Reference To Self node to the TaskOwner parameter

The static BlueprintCallable function that creates the task has a TScriptInterface\<‘IGameplayTaskOwner\>’ parameter that defaults to self. Unfortunately it seems that this doesn’t work so you need to manually connect the reference to self.

---

<div class="post-metadata">

**Author:** ![jwatte](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jwatte/32/744941_2.png) [@jwatte](https://forums.unrealengine.com/u/jwatte)\
**Post date:** [May 26, 2021, 5:47am UTC](https://forums.unrealengine.com/t/task-wait-delay-never-finishing/431719/8 "2021-05-26T05:47:03Z")

</div>

Thanks for the answer! Why is this like so? Who knows! It’s one of the many arcane things one needs to find out and remember…

---

<div class="post-metadata">

**Author:** ![piontek](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/piontek/32/1194706_2.png) [@piontek](https://forums.unrealengine.com/u/piontek)\
**Post date:** [May 25, 2024, 3:45pm UTC](https://forums.unrealengine.com/t/task-wait-delay-never-finishing/431719/9 "2024-05-25T15:45:39Z")

</div>

Task Wait Delay is for Gameplay Ability Blueprint, nothing else - It only works in Gameplay Ability Blueprint. Thats why it’s a “Gameplay Task”.
