Update character speed

Hello everyone, I’m making a sprint blueprint that is connect to a hunger/thirst system and depending on the thirst level you’ll have a certain speed, the problem is that it doesn’t update in real time, it only works if I press the sprint after the thirst level has changed. I tried while and if and nothing works, does anyone knows how to make it work?

Not sure how you have it set up, but is it firing the change on your sprint key press or on tick?
If it is set to tick I would imagine it updates as you’re sprinting.

I use tick to update a value ‘speed’ and use sprint key press to change the max walk value to ‘speed’