Get Cooldown Remaining

Pure
GetCooldownRemaining

Returns remaining cooldown time in seconds and as a normalized 0-1 value for UI progress bars.

Type: Pure (no side effects)
Category: Fortuna|Time & Date
Keywords: time & date

Inputs

NameTypeDefaultDescription
CooldownEndTimefloatCooldownEndTime parameter
CurrentTimefloatCurrentTime parameter

Outputs

NameTypeDescription
RemainingSecondsfloatRemainingSeconds output
NormalizedRemainingfloat 0-1NormalizedRemaining output
bIsReadyboolbIsReady output

Example Use Cases

Example 1

Update a circular cooldown indicator on an ability icon.

Example 2

Show a countdown timer on a locked door.