1681-engine / index / reactiveSequence
Function: reactiveSequence() ​
ts
function reactiveSequence<C>(...children): BtNode<C>;Defined in: src/ai/behaviorTree.ts:183
A sequence that asks every child from the first again on each tick: a guard in front ("still sees the player?") is checked every time, and when it fails the child that was running is halted.
Type Parameters ​
| Type Parameter |
|---|
C |
Parameters ​
| Parameter | Type |
|---|---|
...children | BtNode<C>[] |
Returns ​
BtNode<C>