# Micropause/Microfreeze when hitting the enemy

**URL:** <https://forums.unrealengine.com/t/micropause-microfreeze-when-hitting-the-enemy/493139>\
**Category:** Blueprint\
**Tags:** combat, unreal-engine, UE4, question, Blueprint, UE4-27\
**Created:** [February 1, 2022, 11:08pm UTC](https://forums.unrealengine.com/t/micropause-microfreeze-when-hitting-the-enemy/493139 "2022-02-01T23:08:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![eromanga](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eromanga](https://forums.unrealengine.com/u/eromanga)\
**Post date:** [February 1, 2022, 11:08pm UTC](https://forums.unrealengine.com/t/micropause-microfreeze-when-hitting-the-enemy/493139/1 "2022-02-01T23:08:26Z")

</div>

Hi! couldn’t find this info anywhere ☹  
I was trying to achieve it through pause/unpause but it looks kinda silly

I am new to UE so would be very happy for any answers!

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [February 2, 2022, 5:32pm UTC](https://forums.unrealengine.com/t/micropause-microfreeze-when-hitting-the-enemy/493139/2 "2022-02-02T17:32:14Z")

</div>

Set Global Time Dilation should do the trick

---

<div class="post-metadata">

**Author:** ![eromanga](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eromanga](https://forums.unrealengine.com/u/eromanga)\
**Post date:** [February 2, 2022, 6:49pm UTC](https://forums.unrealengine.com/t/micropause-microfreeze-when-hitting-the-enemy/493139/3 "2022-02-02T18:49:41Z")

</div>

Thanks for the answer Tuerer! I liked this feature a lot but seems like I can’t achieve my goal with it.

Firstly I was trying to make a ‘microfreeze’ for a fraction of a second and used delay between setting but as I understood delay time also \*10 because of the dilation so I tried to decrease delay by /10 but delay just doesn’t work. After some point like 0.05 or smth like that it just won’t work  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/d/6/ed697850eb058bcf9c669705a8c7934b8ecdaf9a.png)

Secondly animations are also becoming laggy and camera movement makes it even worse

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/3/b/e3bfa7e4bdb8058cb514b45cdbd9e3001ecf2d54.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/3/b/e3bfa7e4bdb8058cb514b45cdbd9e3001ecf2d54.mp4)

Thanks for reading!

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [February 2, 2022, 7:09pm UTC](https://forums.unrealengine.com/t/micropause-microfreeze-when-hitting-the-enemy/493139/4 "2022-02-02T19:09:28Z")

</div>

Instead of Delay, try a Timeline with no curves, and set it to ignore Time Dilation.  
As for these lags… are you sure your SetGlobalTimeDilation is called only once per hit? It seems to me that is might be called multiple times.

---

<div class="post-metadata">

**Author:** ![eromanga](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eromanga](https://forums.unrealengine.com/u/eromanga)\
**Post date:** [February 2, 2022, 9:49pm UTC](https://forums.unrealengine.com/t/micropause-microfreeze-when-hitting-the-enemy/493139/5 "2022-02-02T21:49:29Z")

</div>

Thanks for the advice, didn’t know that there was such option in timeline. I think that’s what I need but lagg issue is still occurring. I’m pretty sure I’m calling it only one time since it goes after damage notify on the left

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/e/2/be20a36951b786f1a814d35dae6e0828211a5b07.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/e/2/be20a36951b786f1a814d35dae6e0828211a5b07.mp4)

Here I deleted it from everywhere and set it only on beginplay

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/5/8/85851d4d2a9859048d63af14e6ab34a56744fefc.png)

that’s the result

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/4/0/c4082db5ca137371b2d6133c76fee545eefaf224.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/4/0/c4082db5ca137371b2d6133c76fee545eefaf224.mp4)

---

<div class="post-metadata">

**Author:** ![eromanga](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eromanga](https://forums.unrealengine.com/u/eromanga)\
**Post date:** [February 2, 2022, 9:54pm UTC](https://forums.unrealengine.com/t/micropause-microfreeze-when-hitting-the-enemy/493139/6 "2022-02-02T21:54:29Z")

</div>

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/6/0/060bc5022ab0e091d86406d2d1a5ec314f6c1ab4.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/6/0/060bc5022ab0e091d86406d2d1a5ec314f6c1ab4.mp4)

Getting same problem in a new project  
I don’t know if the problem is caused by my pc and even if it is I can’t think of any causes

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [February 2, 2022, 9:56pm UTC](https://forums.unrealengine.com/t/micropause-microfreeze-when-hitting-the-enemy/493139/7 "2022-02-02T21:56:03Z")

</div>

Hmmm, the animation seems smooth, but there’s too much motion blur going on for some reason. Try disabling motion blur in Project Settings and see what happens.  
As for jerky camera movement, I don’t really know why it happens.

---

<div class="post-metadata">

**Author:** ![eromanga](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eromanga](https://forums.unrealengine.com/u/eromanga)\
**Post date:** [February 2, 2022, 10:00pm UTC](https://forums.unrealengine.com/t/micropause-microfreeze-when-hitting-the-enemy/493139/8 "2022-02-02T22:00:34Z")

</div>

Oh my god, it looks SO MUCH better, even just walking around, why is it turned on by default…

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/c/c/acc397e4d66bcc2776d15ab9c7eb73cb31d6a5f1.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/c/c/acc397e4d66bcc2776d15ab9c7eb73cb31d6a5f1.mp4)

Thank you so much for helping!!
