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

findCooldown

findCooldown(entity, key): Cooldown | undefined

The cooldown entity runs under key, or undefined while it runs none or once its end tick is reached: a read of one entity’s own trait, so it takes no world, at the tick its world stands on.

Parameter Type
entity Entity
key CooldownKey

Cooldown | undefined