Skip to content

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 ​

ParameterType
namestring
run(ctx, now) => BtStatus
optionsActionOptions<C>

Returns ​

BtNode<C>

Released under the MIT License.