Slowmotion based on movement

Hello everyone,

Hope your Unreal Projects are doing well,

I’m currently working on a shooter game that has, amongst other things, a slow-motion power.

As it is now:
I currently have a blueprint set up that if you press a certain button it will trigger the power, through a flip-flop to turn it on and off again.

The flip-flop leads into sequences (i put them in advance because what i seek wont do in the timeline i think)
And they lead into a timeline. This timeline will gradually alter the time through time-dilation and in addition it will increase the field of view for the player.

Thats the main sequence, the 2nd part will simply drain and re-add the “energy” bar so its irrelevant.

My question is, i want to make the slow motion effect to be affected by my movement speed.
In the sense, if i stand still time moves really slow (clamped so it wont go to absolute 0 and my game freezes)
And if i run at max speed it be only minor slow motion.

Anyone have an idea on how to succesfully achieve this?

My idea so far has been to simply get the speed from my character, turn that vector into a float value, turn it into a percentage and throw that into a clamp to have a min and max value.
And use that value to slow down ingame time.

But i haven’t been able to set up a good working way,

Any ideas or solutions would be greatly appreciated.