Goal

Use this pattern when the agent should wander until a timer ends, even though the Wander task would otherwise continue.

Tree structure

A Parallel Selector runs Wander beside Wait N Seconds.

How it runs

Add Wander and Wait N Seconds beneath a Parallel Selector, then set Wait to the desired duration. Both branches start together: Wander continues while the timer counts down, and when Wait succeeds, the Parallel Selector succeeds and stops Wander. The Wander node represents the movement task supplied by your controller or movement add-on.

Variations

If Wander succeeds each time it reaches a destination, place a Repeater above it so the branch remains active for the full period. Use an ordinary Parallel when every branch must finish successfully instead of allowing the timer to end the behavior.

Tasks used in this tree

Parallel Selector, Wait in the Actions reference, and Repeater.