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

readCooldownRemainingSeconds

readCooldownRemainingSeconds(entity, key): number

Simulated seconds left on the cooldown entity runs under key, 0 where it runs none: what a button’s rim and a countdown show. Derived from the tick it ends on at the tick the entity’s world stands on, so a view that reads it each step moves with nothing sent. On the player’s page that is the predicted tick: right for the player’s own cooldowns, and a little ahead for one the room decides.

Parameter Type
entity Entity
key CooldownKey

number