# Delay in middle of ForLoop Body

**URL:** <https://forums.unrealengine.com/t/delay-in-middle-of-forloop-body/402608>\
**Category:** Blueprint\
**Tags:** delay, for-loop, unreal-engine, question, Blueprint\
**Created:** [August 23, 2017, 10:11am UTC](https://forums.unrealengine.com/t/delay-in-middle-of-forloop-body/402608 "2017-08-23T10:11:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_dc2070b31](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dc2070b31](https://forums.unrealengine.com/u/anonymous_user_dc2070b31)\
**Post date:** [August 23, 2017, 10:11am UTC](https://forums.unrealengine.com/t/delay-in-middle-of-forloop-body/402608/1 "2017-08-23T10:11:55Z")

</div>

Hi,  
I have been trying to make a blueprint where player needs to click a button and based on what button he clicks different actions happen. I cant manage to get working delay in for loop(where blueprint needs to wait for player). I know that it cant be done in standard ForLoop, but I cant make it work in custom either. I dont understand for loops in unreal that good so its probably because of that.  
This is what I want my delay to look like:

[[Album] imgur.com ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/a/c/facf06bf1c8bbc7505f7ff9d108e9f83aed0143a.jpeg "imgur.com") ](https://imgur.com/a/4OobF)

And here is how i tried adding delay in custom ForLoop:

[[Album] imgur.com ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/5/0/f5096c9d7a0d79daa5ae1185f84c27d9b5dc5242.jpeg "imgur.com") ](https://imgur.com/a/1ZLtQ)

---

<div class="post-metadata">

**Author:** ![Iohoilpotere](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Iohoilpotere](https://forums.unrealengine.com/u/Iohoilpotere)\
**Post date:** [August 23, 2017, 10:54am UTC](https://forums.unrealengine.com/t/delay-in-middle-of-forloop-body/402608/2 "2017-08-23T10:54:37Z")

</div>

Remember that a delay will always interrupt your exec flow so you CAN’T use it in a loop. If you relally need a loop w/ delay you have to set up your own, I can suggest this setup, I’ve done it in 5 mins so you can probably improve it:

 ![210870-delayloop.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/0/a/d0af5aca00263466da0ca7b6e5a818a12883aefd.png)

EDIT: since you are new: to zoom images on answerhub rightclick on it and open in a new tab/window

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_dc2070b31](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dc2070b31](https://forums.unrealengine.com/u/anonymous_user_dc2070b31)\
**Post date:** [August 23, 2017, 11:06am UTC](https://forums.unrealengine.com/t/delay-in-middle-of-forloop-body/402608/3 "2017-08-23T11:06:07Z")

</div>

Thank you, I will try that now.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_dc2070b31](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dc2070b31](https://forums.unrealengine.com/u/anonymous_user_dc2070b31)\
**Post date:** [August 23, 2017, 11:16am UTC](https://forums.unrealengine.com/t/delay-in-middle-of-forloop-body/402608/4 "2017-08-23T11:16:18Z")

</div>

It works great for what I need, I just need to modify it now, thank you again
