Attack with Cooldown
Use this pattern to hold an attack branch active for a cooldown after the attack finishes. Use an explicit availability condition when other behavior must run during the cooldown.
Tree structure

How it runs
The Selector tries the attack branch first. A failed range condition sends it to Approach or Idle. When the condition succeeds, Cooldown starts Attack immediately. After Attack finishes, Cooldown remains Running for its duration, then returns the attack’s stored Success or Failure. The Selector stays on this branch during that wait.

This capture shows a failed range check: neither Cooldown nor Attack starts, and the fallback remains Running. If an attack instead returns Failure, Cooldown finishes its post-attack delay before that failure reaches the Selector. Waiting Cooldown remains Running.
Selector, Sequence, and Cooldown are built in. Is Target in Range and Attack represent game-specific tasks, while Approach or Idle can use whichever movement or idle task suits the character; that task may come from a movement add-on.
For a fallback that remains available between attacks, store the next allowed attack time in game-owned data. Put a custom Conditional before Attack that fails until that time is reached, and update the timestamp when the attack is accepted. Reevaluate this branch using the tree’s interruption policy.
Tasks used: