Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

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".

Parameter Type
name string

CooldownKey