startCooldown
Call Signature
Section titled “Call Signature”startCooldown(
writer,entity,options):void
Starts a cooldown on entity under key. One already running under
the key with longer left stays as it is, so a short cooldown never cuts
a long one. A predicted write, as pushCharacter’s: call it from a
predicted system, so the player’s page starts it on the tick the player
pressed and the room’s word corrects it. A rule on the room alone calls
it with the room’s step: on an entity no player controls, such as a
monster, a plain write. On a character a player controls, it is the
room’s grant, as grantPredicted makes it, which the player’s page
takes as the correction it is. A call from outside any step is a type
error. It throws for seconds that are not a finite number above 0, and
where the world does not run cooldowns.systems.countDown, naming the
line to change.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
writer |
PredictedStep |
entity |
PredictedEntity |
options |
CooldownOptions |
Returns
Section titled “Returns”void
Call Signature
Section titled “Call Signature”startCooldown(
writer,entity,options):void
Starts a cooldown on entity under key. One already running under
the key with longer left stays as it is, so a short cooldown never cuts
a long one. A predicted write, as pushCharacter’s: call it from a
predicted system, so the player’s page starts it on the tick the player
pressed and the room’s word corrects it. A rule on the room alone calls
it with the room’s step: on an entity no player controls, such as a
monster, a plain write. On a character a player controls, it is the
room’s grant, as grantPredicted makes it, which the player’s page
takes as the correction it is. A call from outside any step is a type
error. It throws for seconds that are not a finite number above 0, and
where the world does not run cooldowns.systems.countDown, naming the
line to change.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
writer |
EntityAuthority |
entity |
Entity |
options |
CooldownOptions |
Returns
Section titled “Returns”void