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