Skip to content

1681-engine / index / cooldown

Function: cooldown() ​

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

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

Runs its child at most once every ms: after it finishes, it fails at once until the time is up.

Type Parameters ​

Type Parameter
C

Parameters ​

ParameterType
msnumber
childBtNode<C>

Returns ​

BtNode<C>

Released under the MIT License.