1681-engine / index / action
Function: action() ​
ts
function action<C>(
name,
run,
options?
): BtNode<C>;Defined in: src/ai/behaviorTree.ts:324
Something the agent does: run answers each tick until the doing is done.
Type Parameters ​
| Type Parameter |
|---|
C |
Parameters ​
| Parameter | Type |
|---|---|
name | string |
run | (ctx, now) => BtStatus |
options | ActionOptions<C> |
Returns ​
BtNode<C>