Skip to content

1681-engine / index / retry

Function: retry() ​

ts
function retry<C>(times, child): BtNode<C>;

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

Tries its child up to times times until it succeeds, a try a tick.

Type Parameters ​

Type Parameter
C

Parameters ​

ParameterType
timesnumber
childBtNode<C>

Returns ​

BtNode<C>

Released under the MIT License.