Skip to content

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 ​

ParameterType
...childrenBtNode<C>[]

Returns ​

BtNode<C>

Released under the MIT License.