Skip to content

selector

selector<TCtx>(…children): BtNode<TCtx>

Defined in: src/modules/behavior-tree/bt.ts:39

Run children in order until one does not fail (logical OR / fallback). Returns success on the first child that succeeds, running on the first that is running, and failure only if every child fails.

TCtx

…BtNode<TCtx>[]

BtNode<TCtx>