Is Cooldown Ready

Pure
IsCooldownReady

Checks if enough time has passed since last activation. Also returns remaining cooldown time.

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

Inputs

NameTypeDefaultDescription
LastActivationTimefloatLastActivationTime parameter
CooldownDurationfloatCooldownDuration parameter
CurrentTimefloatCurrentTime parameter

Outputs

NameTypeDescription
ReturnValueboolReturnValue output
RemainingTimefloatRemainingTime output

Example Use Cases

Example 1

Check if an ability is off cooldown.

Example 2

Determine if a shop restock timer has elapsed.