# Blueprint Macro Delay bug

**URL:** <https://forums.unrealengine.com/t/blueprint-macro-delay-bug/369285>\
**Category:** Blueprint\
**Tags:** delay, macros, unreal-engine, bug-report, Blueprint, question\
**Created:** [September 3, 2016, 11:44pm UTC](https://forums.unrealengine.com/t/blueprint-macro-delay-bug/369285 "2016-09-03T23:44:24Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![dzarafata](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dzarafata](https://forums.unrealengine.com/u/dzarafata)\
**Post date:** [September 3, 2016, 11:44pm UTC](https://forums.unrealengine.com/t/blueprint-macro-delay-bug/369285/1 "2016-09-03T23:44:24Z")

</div>

When using delays inside macros, if the same macro is used in two places (A nad B) and B is executed while A is waiting for delay to end, then B is ‘canceled’ as soon it gets to the delay node.

I’m not sure but i think this problem did not happen to me in 4.12.  
I made a youtube video to better show the problem.

[https://youtu.be/qvVde3z9CtE](https://youtu.be/qvVde3z9CtE)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [September 6, 2016, 3:54pm UTC](https://forums.unrealengine.com/t/blueprint-macro-delay-bug/369285/2 "2016-09-06T15:54:17Z")

</div>

Hello dzarafata,

Thank you for reporting this issue. I do believe this behavior is intended due to the way delays work but I placed a bug report in seeing as the behavior is different from 4.12.5. You can find the bug report [here](https://issues.unrealengine.com/issue/UE-35609) and track it for updates.

Have a nice day!

---

<div class="post-metadata">

**Author:** ![dzarafata](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dzarafata](https://forums.unrealengine.com/u/dzarafata)\
**Post date:** [September 8, 2016, 10:24am UTC](https://forums.unrealengine.com/t/blueprint-macro-delay-bug/369285/3 "2016-09-08T10:24:58Z")

</div>

Hi,  
I saw in bug report that it states that delay was reset. If I understand correctly, that means that only second macro call will be completed.

In my case it was only the first one. It’s seems more like second call is blocked/canceled.  
In example i posted, I’ve started one printing ‘B’ first and then one printing ‘A’ later and maybe that could lead You into mistake, as only ‘END B’ was printed.

![106152-dealysbug.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/b/c/4bce3ccd52ca9515d80142be66e332ec20bd01da.png)

Have a nice day to!

---

<div class="post-metadata">

**Author:** ![kurosu143](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kurosu143](https://forums.unrealengine.com/u/kurosu143)\
**Post date:** [September 13, 2016, 6:12pm UTC](https://forums.unrealengine.com/t/blueprint-macro-delay-bug/369285/4 "2016-09-13T18:12:52Z")

</div>

I have the same problem. While A(pressed) is waiting for delay to finish, then when B is executed, at the same time A delay is canceled and executed. Also, B won’t execute anymore.

---

<div class="post-metadata">

**Author:** ![dzarafata](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dzarafata](https://forums.unrealengine.com/u/dzarafata)\
**Post date:** [September 29, 2016, 3:31pm UTC](https://forums.unrealengine.com/t/blueprint-macro-delay-bug/369285/5 "2016-09-29T15:31:58Z")

</div>

It’s working like a charm in 4.13.1. Thanks a lot!

---

<div class="post-metadata">

**Author:** ![Stormrage256](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/stormrage256/32/1008648_2.png) [@Stormrage256](https://forums.unrealengine.com/u/Stormrage256)\
**Post date:** [November 22, 2016, 6:18am UTC](https://forums.unrealengine.com/t/blueprint-macro-delay-bug/369285/6 "2016-11-22T06:18:28Z")

</div>

Hi Matthew, I’ve been experiencing the same issue in v4.14 as well. When a ‘for loop with delay’ macro is being called multiple times, only the first one keeps looping, while all subsequent ones stop after the first iteration of their loops. It was working perfectly fine in v4.13.1 & the issue has been marked fixed. Do you know if it’s getting a fix in the upcoming 4.14 updates?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [November 22, 2016, 1:15pm UTC](https://forums.unrealengine.com/t/blueprint-macro-delay-bug/369285/7 "2016-11-22T13:15:02Z")

</div>

Hello Stormrage256,

The fix was originally entered directly into the 4.13 release branch so that it could be included in the 4.13.1 hotfix. It was never added into the other branches however so the issue showed up again in 4.14 since it’s a separate branch. I’ve already reported that the fix needed to get merged over and verified that it’s in the stream now. It will be fixed in 4.14.1.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fd57f212](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fd57f212](https://forums.unrealengine.com/u/anonymous_user_fd57f212)\
**Post date:** [December 16, 2016, 5:29pm UTC](https://forums.unrealengine.com/t/blueprint-macro-delay-bug/369285/8 "2016-12-16T17:29:14Z")

</div>

While beeing flagged as fixed in 4.14.1 I still experience this Issue, or a very similar Issue. I have a delay macro, and if I execute it, while another instance of the macro is still running, all following macros won’t finish.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [December 19, 2016, 7:40pm UTC](https://forums.unrealengine.com/t/blueprint-macro-delay-bug/369285/9 "2016-12-19T19:40:20Z")

</div>

Hello AlexW88,

Using the reproduction steps that I had written up when entering this bug, I’m not seeing the issue in 4.14.1. Could you please upload some screenshots of the macros you’re using or a small project that reproduces the issue?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fd57f212](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fd57f212](https://forums.unrealengine.com/u/anonymous_user_fd57f212)\
**Post date:** [December 20, 2016, 1:16am UTC](https://forums.unrealengine.com/t/blueprint-macro-delay-bug/369285/10 "2016-12-20T01:16:09Z")

</div>

[https://ufile.io/71cf6](https://ufile.io/71cf6)

Just load the test level and hit play, it should print A,B,C,D after some time, but it does only print A.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [December 20, 2016, 3:27pm UTC](https://forums.unrealengine.com/t/blueprint-macro-delay-bug/369285/11 "2016-12-20T15:27:36Z")

</div>

Thank you for that reproduction project. I can reproduce the issue with what you gave me but after messing with it, I’m confused as to how this was even set up. Where did you add the delay node that you have inside of your OBJ\_Macro\_Lib’s Delay macro? If it’s deleted and you attempt to add it back, it’s not available even with Context Sensitivity disabled. Was this node copied from another blueprint?

I remade the reproduction with a macro created in the Level Blueprint, as macros in function libraries aren’t meant to have delays, other than a Task Wait Delay which is related to AI functions. After doing that, it works without an issue.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fd57f212](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fd57f212](https://forums.unrealengine.com/u/anonymous_user_fd57f212)\
**Post date:** [December 20, 2016, 7:32pm UTC](https://forums.unrealengine.com/t/blueprint-macro-delay-bug/369285/12 "2016-12-20T19:32:20Z")

</div>

The node was first collapsed within another BP and then copied to the Library. This is the “official” workaround for a “(terrible)designchoice” in 4.7 - you can read about it here: [4.7 preview 3 - Delay not available in standard macros - Blueprint - Epic Developer Community Forums](https://answers.unrealengine.com/questions/158547/47-preview-3-delay-not-available-in-standard-macro.html)

Delays in Macro libraries (for the object class - so one doesn’t have to make 101 instances of the same Macro for various classes) are quite Important. It would be great if this Issue could be fixed.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [December 20, 2016, 9:28pm UTC](https://forums.unrealengine.com/t/blueprint-macro-delay-bug/369285/13 "2016-12-20T21:28:28Z")

</div>

The problem is that, since Delay nodes must be called on something that exists in the level as it needs to have a World Context Object, this won’t work correctly in most cases without one.

As mentioned, it’s a work around that is basically fooling the editor into letting you place the node here. The bug report itself that was entered for that user’s issue ([UE-7819](https://issues.unrealengine.com/issue/UE-7819)) is marked as By Design as delays are not intended to be used in these types of macros.

If the macro is created on the blueprint class itself rather than being created in a function library, UObject, or the StandardMacros library, it should work without any issues.

I can put in a feature request to have them be available if you wish but with the resolution of that bug report, I’m not sure if it would come to fruition.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fd57f212](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fd57f212](https://forums.unrealengine.com/u/anonymous_user_fd57f212)\
**Post date:** [December 20, 2016, 11:33pm UTC](https://forums.unrealengine.com/t/blueprint-macro-delay-bug/369285/14 "2016-12-20T23:33:42Z")

</div>

No, I don’t need a new feature.

This workaround used to “work”, if you test the same setup I sent you in version 4.12 of the engine, you will see everything works flawless.

But since 4.13 it shows the exact same behavior as described for UE-35609

So UE-35609 is only fixed partially with 4.14.1.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [December 21, 2016, 3:11pm UTC](https://forums.unrealengine.com/t/blueprint-macro-delay-bug/369285/15 "2016-12-21T15:11:55Z")

</div>

As stated previously, this was a workaround that is “hacky” as mentioned by the person who provided it. This is not intended functionality so the fact that it was working was a bug in and of itself. The fact that the workaround doesn’t work anymore in 4.14.1 is not a bug.

---

<div class="post-metadata">

**Author:** ![Redsett](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Redsett](https://forums.unrealengine.com/u/Redsett)\
**Post date:** [February 19, 2017, 9:29pm UTC](https://forums.unrealengine.com/t/blueprint-macro-delay-bug/369285/16 "2017-02-19T21:29:03Z")

</div>

I’m seeing this exact issue in 4.14.3.

It only prints the last macro executed after the delay.

 ![126968-2017-02-19+13_28_01-hnh+-+unreal+editor.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/2/c/62c6d78520cabf4d3d0d5d6d0b983702961c105e.png)

It seems this bug keeps getting fixed and cut after each update?

Edit: Also verified this is happening in 4.15 as well.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [February 20, 2017, 8:34pm UTC](https://forums.unrealengine.com/t/blueprint-macro-delay-bug/369285/17 "2017-02-20T20:34:58Z")

</div>

Hello Redsett,

I’m not seeing this issue in neither 4.14.3 or 4.15. I can’t see what event’s you’re using to call this function but remember that if you’re using the same input, and therefore calling the same macro call, this is expected as you’re only resetting the delay. You need to be using two separate macro calls if you want two of them to be running at once.
