# Variable Chasing: How I can create a Time Cycle Reset Mechanic?

**URL:** <https://forums.unrealengine.com/t/variable-chasing-how-i-can-create-a-time-cycle-reset-mechanic/597735>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE4-27, Blueprint, question\
**Created:** [July 5, 2022, 5:08pm UTC](https://forums.unrealengine.com/t/variable-chasing-how-i-can-create-a-time-cycle-reset-mechanic/597735 "2022-07-05T17:08:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![GraczCourier](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/graczcourier/32/1000581_2.png) [@GraczCourier](https://forums.unrealengine.com/u/GraczCourier)\
**Post date:** [July 5, 2022, 5:08pm UTC](https://forums.unrealengine.com/t/variable-chasing-how-i-can-create-a-time-cycle-reset-mechanic/597735/1 "2022-07-05T17:08:35Z")

</div>

I joined the Forums a year ago, and now giving the Unreal Engine 4 a shot.  
Using the 4.27.2 version of the Unreal Engine.

I got used to **Overwatch** Game’s **Workshop feature** , which had **conditions and actions** like Chase Variable Over Time and Chase Variable At Rate Per Second.

I’m trying to make a Time Cycle Reset Mechanic in Unreal Engine, that activates Globally, when the clock reaches… 6 AM for ex.

When that happens, time slows down at the rate of the set value until it reaches it’s destination value.

Here’s how it looks like in the game:

Action: Start Chasing Global Variable At Rate  
Global Variable: VAR\_Game\_Motion  
Rate: 1,0  
Destination: 0,0

Trying to find something similar in UE, but I can’t find it. Any help?

I’m also trying to make the Aiming Speed of the player, to be affected by the Time Cycle Reset.

---

<div class="post-metadata">

**Author:** ![Husky211](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/husky211/32/1193324_2.png) [@Husky211](https://forums.unrealengine.com/u/Husky211)\
**Post date:** [July 5, 2022, 7:13pm UTC](https://forums.unrealengine.com/t/variable-chasing-how-i-can-create-a-time-cycle-reset-mechanic/597735/2 "2022-07-05T19:13:19Z")

</div>

you need to learn 2 things 😶‍🌫️

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/4/9/749015bd5c1bffe20d23b7c2cbb1f8ce34ca4343.jpeg "WTF Is? Interpolation - Ease Node in Unreal Engine 4") ](https://www.youtube.com/watch?v=3zRSoAfTnWE)

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/d/b/9db6aa2eeeb264db94bc78019e349348e24586c8.jpeg "WTF Is? Global Time Dilation in Unreal Engine 4 ( UE4 )") ](https://www.youtube.com/watch?v=y2DtVnOugVY)

---

<div class="post-metadata">

**Author:** ![GraczCourier](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/graczcourier/32/1000581_2.png) [@GraczCourier](https://forums.unrealengine.com/u/GraczCourier)\
**Post date:** [July 6, 2022, 3:54pm UTC](https://forums.unrealengine.com/t/variable-chasing-how-i-can-create-a-time-cycle-reset-mechanic/597735/3 "2022-07-06T15:54:26Z")

</div>

The Timeline node doesn’t have float outputs like 0-10 or G-Track like in the vids.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/a/f/1af0e5681b84b5c5481c32915b9c55df3b4df890.png)

I just want the float of the Time Dilation to be gradually modified at a specific rate, cuz I don’t want to go for a longer way:  
Time Dilation - 0.9  
Delay - 0.1  
Time Dilation - 0.8  
Delay - 0.1  
And so on until reaching 0.01.

Just what am I doing wrong?

---

<div class="post-metadata">

**Author:** ![Husky211](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/husky211/32/1193324_2.png) [@Husky211](https://forums.unrealengine.com/u/Husky211)\
**Post date:** [July 7, 2022, 1:52am UTC](https://forums.unrealengine.com/t/variable-chasing-how-i-can-create-a-time-cycle-reset-mechanic/597735/4 "2022-07-07T01:52:11Z")

</div>

Double click the timeline and add a float track 😶‍🌫️

---

<div class="post-metadata">

**Author:** ![Husky211](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/husky211/32/1193324_2.png) [@Husky211](https://forums.unrealengine.com/u/Husky211)\
**Post date:** [July 7, 2022, 2:13am UTC](https://forums.unrealengine.com/t/variable-chasing-how-i-can-create-a-time-cycle-reset-mechanic/597735/5 "2022-07-07T02:13:40Z")

</div>

Justo copy this 😅

 ![UEForum2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/6/f/b6fef20b2a8c4c35805a4e7c6cf589271c0a3d8b.png)  
time dilatation default value = 1

---

<div class="post-metadata">

**Author:** ![GraczCourier](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/graczcourier/32/1000581_2.png) [@GraczCourier](https://forums.unrealengine.com/u/GraczCourier)\
**Post date:** [July 7, 2022, 6:11pm UTC](https://forums.unrealengine.com/t/variable-chasing-how-i-can-create-a-time-cycle-reset-mechanic/597735/6 "2022-07-07T18:11:02Z")

</div>

Got it working a little. I also added a sound for the Time Freezing, but… it doesn’t seem to execute. Even with Finished Exec connected to the branch. I guess the Timeline node is still working, despite of being told to Stop, once the B Float Variable Value is reached.  
Placing a Less than Equals (\<=) B Float, when having the Update Exec connected to that Branch makes the Time Freezing execute endlessly, instead of once.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/5/6/e56332289d93506f0cba5df5ab6177cb42fcc67d.png)

---

<div class="post-metadata">

**Author:** ![GraczCourier](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/graczcourier/32/1000581_2.png) [@GraczCourier](https://forums.unrealengine.com/u/GraczCourier)\
**Post date:** [July 8, 2022, 2:32pm UTC](https://forums.unrealengine.com/t/variable-chasing-how-i-can-create-a-time-cycle-reset-mechanic/597735/7 "2022-07-08T14:32:20Z")

</div>

I’m stupid. Forgot to set the length inside the Timeline, which makes a reason, why Finished Exec was not running. Time Freeze finally working. Now… a time rewind. Global Time Dilation set to -1 doesn’t seem to work, only makes the Time stop completely.
