1681-engine / index / reactiveSelector
Function: reactiveSelector() ​
ts
function reactiveSelector<C>(...children): BtNode<C>;Defined in: src/ai/behaviorTree.ts:191
A selector that asks from the first child again on each tick: a higher-priority branch ("flee when hurt") takes over the moment it can run, halting the lower one it interrupts.
Type Parameters ​
| Type Parameter |
|---|
C |
Parameters ​
| Parameter | Type |
|---|---|
...children | BtNode<C>[] |
Returns ​
BtNode<C>