Skip to content

1681-engine / index / sequence

Function: sequence() ​

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

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

Runs its children in order until one fails: all must succeed. A running child is resumed on the next tick without asking the ones before it again (reactiveSequence does ask them).

Type Parameters ​

Type Parameter
C

Parameters ​

ParameterType
...childrenBtNode<C>[]

Returns ​

BtNode<C>

Released under the MIT License.