registerCooldown
@zylem/game-lib / behavior / registerCooldown
Function: registerCooldown()
registerCooldown(
name,duration,immediate?):void
Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/cooldown.d.ts:92
Register a named cooldown in the global store. If a cooldown with the same name already exists, it is overwritten.
Parameters
name
string
Unique cooldown identifier
duration
number
Cooldown duration in seconds
immediate?
boolean
If true, the cooldown starts ready (default: true)
Returns
void