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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
entity |
Entity |
key |
CooldownKey |
Returns
Section titled “Returns”number