Goal

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

Tree structure

Place Wander and Wait for Duration beneath a Parallel Selector. Both branches start together.

A Parallel Selector runs Wander alongside Wait for Duration so the wandering branch stops when the timer succeeds.

How it runs

Wander remains Running while the timer counts down. When Wait succeeds, Parallel Selector succeeds and stops Wander. The Wander node represents a movement task from your project or movement integration; Wait and Parallel Selector are built in.

Variations

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

Tasks used in this tree

Parallel Selector, Repeater, and Wait from Actions.