# How do you add a delay for x seconds with time dilation 0?

**URL:** <https://forums.unrealengine.com/t/how-do-you-add-a-delay-for-x-seconds-with-time-dilation-0/1963543>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [August 6, 2024, 1:13am UTC](https://forums.unrealengine.com/t/how-do-you-add-a-delay-for-x-seconds-with-time-dilation-0/1963543 "2024-08-06T01:13:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Unrealist23](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Unrealist23](https://forums.unrealengine.com/u/Unrealist23)\
**Post date:** [August 6, 2024, 1:13am UTC](https://forums.unrealengine.com/t/how-do-you-add-a-delay-for-x-seconds-with-time-dilation-0/1963543/1 "2024-08-06T01:13:48Z")

</div>

If you set time dilation to 0 temporarily but you still want to add a delay inside a custom event during that time(in my case I want to hide a widget after x seconds) using delay won’t work. So what can you do instead?

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [August 6, 2024, 3:51am UTC](https://forums.unrealengine.com/t/how-do-you-add-a-delay-for-x-seconds-with-time-dilation-0/1963543/2 "2024-08-06T03:51:24Z")

</div>

Hey there @Unrealist23! I found a thread with a quick Macro that might work out, let me know how it goes!

> [@Timers not affected by Time Dilation](https://forums.unrealengine.com/t/timers-not-affected-by-time-dilation/467657/6):
>
> Hey sorry for necro but I was able to create a quick macro for a delay node that ignores time dilation. Would be useful for use guys! You will have to create either a ActorMacro bp, or a ActorComponentMacro bp depending on where you want to use this node. Here is the setup for the macro. Then this can be used like like any normal delay. Keep in mind this is definitely less efficient. The last check for game instance is solve issue we had that would fire when swit…

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [September 5, 2024, 3:51am UTC](https://forums.unrealengine.com/t/how-do-you-add-a-delay-for-x-seconds-with-time-dilation-0/1963543/3 "2024-09-05T03:51:55Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
