Skip to content

action

action<TCtx>(fn): BtNode<TCtx>

Defined in: src/modules/behavior-tree/bt.ts:72

Leaf: run fn and use its status. Return success for an instant effect, running for a behaviour that spans ticks (travel, wait), or failure when the action can’t proceed.

TCtx

(ctx) => BtStatus

BtNode<TCtx>