Skip to content

1681-engine / index / parallel

Function: parallel() ​

ts
function parallel<C>(policy, ...children): BtNode<C>;

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

Ticks every child each tick (walk and look about at once). Succeeds once succeed have succeeded, fails once fail have failed, halting the rest; a child that finished is not ticked again until the whole finishes.

Type Parameters ​

Type Parameter
C

Parameters ​

ParameterType
policyParallelPolicy
...childrenBtNode<C>[]

Returns ​

BtNode<C>

Released under the MIT License.