Skip to content

1681-engine / index / selector

Function: selector() ​

ts
function selector<C>(...children): BtNode<C>;

Defined in: src/ai/behaviorTree.ts:167

Tries its children in order until one does not fail: the first that works. Resumes a running child.

Type Parameters ​

Type Parameter
C

Parameters ​

ParameterType
...childrenBtNode<C>[]

Returns ​

BtNode<C>

Released under the MIT License.