Skip to content

1681-engine / index / timeout

Function: timeout() ​

ts
function timeout<C>(ms, child): BtNode<C>;

Defined in: src/ai/behaviorTree.ts:292

Fails, halting its child, when the child has run longer than ms.

Type Parameters ​

Type Parameter
C

Parameters ​

ParameterType
msnumber
childBtNode<C>

Returns ​

BtNode<C>

Released under the MIT License.