defineCooldown
defineCooldown(
name):CooldownKey
Defines the key a game’s 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. 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 |