# How do i add delay in custom loops?

**URL:** <https://forums.unrealengine.com/t/how-do-i-add-delay-in-custom-loops/371974>\
**Category:** Blueprint\
**Tags:** how-to, how-do-i, unreal-engine, editor, UE4, Blueprint, question\
**Created:** [September 29, 2016, 3:36pm UTC](https://forums.unrealengine.com/t/how-do-i-add-delay-in-custom-loops/371974 "2016-09-29T15:36:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![678GUY](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@678GUY](https://forums.unrealengine.com/u/678GUY)\
**Post date:** [September 29, 2016, 3:36pm UTC](https://forums.unrealengine.com/t/how-do-i-add-delay-in-custom-loops/371974/1 "2016-09-29T15:36:04Z")

</div>

i used to tutorial from the oficial channel [Blueprint Essentials: Custom Loops | 14 | v4.2 Tutorial Series | Unreal Engine - YouTube](https://www.youtube.com/watch?v=Mxw391exhVg) and in it he adds a normal delay to it and i cant do it even with contact sensetivity off. how can i add delay to the loop or is impossible now?  
if it is impossible how can i add a delay to the loop

---

<div class="post-metadata">

**Author:** ![678GUY](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@678GUY](https://forums.unrealengine.com/u/678GUY)\
**Post date:** [September 29, 2016, 3:45pm UTC](https://forums.unrealengine.com/t/how-do-i-add-delay-in-custom-loops/371974/2 "2016-09-29T15:45:27Z")

</div>

and i can only add task wait delay

---

<div class="post-metadata">

**Author:** ![Night\_Watcher](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/night_watcher/32/1145400_2.png) [@Night\_Watcher](https://forums.unrealengine.com/u/Night_Watcher)\
**Post date:** [September 29, 2016, 4:17pm UTC](https://forums.unrealengine.com/t/how-do-i-add-delay-in-custom-loops/371974/3 "2016-09-29T16:17:25Z")

</div>

The problem is that you cannot set a delay in a function, you need to add it directly in the blueprint graph, therefor your for loop cannot be a function, but the parts that don’t use a delay can

---

<div class="post-metadata">

**Author:** ![678GUY](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@678GUY](https://forums.unrealengine.com/u/678GUY)\
**Post date:** [September 29, 2016, 5:13pm UTC](https://forums.unrealengine.com/t/how-do-i-add-delay-in-custom-loops/371974/4 "2016-09-29T17:13:48Z")

</div>

i dont understand what you said but if i put a delay after a loop is just dosent work right is there a way to just make a loop with a delay?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [September 29, 2016, 5:56pm UTC](https://forums.unrealengine.com/t/how-do-i-add-delay-in-custom-loops/371974/5 "2016-09-29T17:56:09Z")

</div>

Hello 678GUY,

If you would like to make a loop with a delay you could use the example below. I hope that this information helps.

Example:

In this example the loop starts on begin play and continues to run until “Continue?” equals false.

 ![108992-loopwithdelayhelp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/2/a/72a989d7201e829864d258d0103a89e82f611ae3.png)

Make it a great day

---

<div class="post-metadata">

**Author:** ![678GUY](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@678GUY](https://forums.unrealengine.com/u/678GUY)\
**Post date:** [September 29, 2016, 7:23pm UTC](https://forums.unrealengine.com/t/how-do-i-add-delay-in-custom-loops/371974/6 "2016-09-29T19:23:43Z")

</div>

thank you i added some stuff to it to do what i need it to do and it worked thx

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2709d010](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2709d010](https://forums.unrealengine.com/u/anonymous_user_2709d010)\
**Post date:** [October 11, 2016, 1:12am UTC](https://forums.unrealengine.com/t/how-do-i-add-delay-in-custom-loops/371974/7 "2016-10-11T01:12:06Z")

</div>

Like he said you can not make a delay in a function call. The event graph is where all the red event nodes are like Tick and BeginPlay. You can only add a delay node on that graph.  
So if you want this delay loop you can not have it in your own function but instead you must move all the function nodes to the top level graph right behind the event that triggered the function.
