Download

Creating a countdown?

Hi, I’m looking to create a, what I believe, is a simple thing, but seem unable to find a solution (worth knowing is that I’m just starting out with Blueprint and visual scripting). I just want to, at execution, give a variable a predefined value, that then counts down to zero over time automatically. Any one who can point me to the right function for this?

Thanks!

A timeline would work, but a simpler solution would be a For Loop node.

Look here for the unreal description.

A better explanation on the For Loop.https://youtube.com/watch?v=2uWeqcTpYXw
An explanation on timelines.
WTF Is? Timelines in Unreal Engine 4 ( UE4 ) - YouTube

You can use a Timer for this purpose. Once you start a Timer, it can keep executing every fixed period of time. So in this case, you can give it a time interval of 1.0, and reduce your variable by 1.0 every time it executes, until it reaches 0, when you can stop the timer. These videos should give you a pretty good idea of how to work with Timers: