defineCooldown
defineCooldown(
name,cooldownKeyOptions?):CooldownKey
Defines the key a cooldown runs under, such as "dash". Called once,
at module scope; one name defined in two places is one key, so two
things share a cooldown by defining the same name, and an item’s
cooldownGroup and a game’s skill share one by naming one key. A
plugin defines its own under a scope, as the engine’s abilities run
theirs under ability: and the ability’s name, so a game’s "dash"
never shares one with an ability named "dash".
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
name |
string |
cooldownKeyOptions |
CooldownKeyOptions |