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

useCooldown

useCooldown(entity, key): Cooldown | undefined

The cooldown entity runs under key, read from the world each step it counts down, or undefined while it runs none: what an ability’s button shows.

Parameter Type
entity Entity | null
key string

Cooldown | undefined