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.
Type Parameters
Section titled “Type Parameters”TCtx
Parameters
Section titled “Parameters”children
Section titled “children”…BtNode<TCtx>[]
Returns
Section titled “Returns”BtNode<TCtx>