useCooldown
useCooldown(
entity,key):Cooldown|undefined
The cooldown entity runs under key, read from the world each step
it counts down, or undefined while it runs none: what an ability’s
button shows.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
entity |
Entity | null |
key |
string |
Returns
Section titled “Returns”Cooldown | undefined