setCooldown beta
Function of @v12-engine/engine
ts
export declare function setCooldown(entity: Entity, ability: string, seconds: number): boolean;Sets how many seconds an entity's ability waits before it can be used again (AbilityState.cooldown), whatever it had left: 0 makes it ready. What a game's effect or hook does where the data's cooldown is not the way (a cooldown that depends on what the cast hit, a recast that starts it). False for an ability the entity does not have