Limiter
This decorator limit the number of times its child can be called. After a
certain number of times, the Limiter decorator returns FAILURE without
executing the child.
Methods
initialize
(
-
params
Initialization method.
Settings parameters:
- maxLoop (Integer) Maximum number of repetitions.
- child (BaseNode) The child node.
Parameters:
-
paramsObjectObject with parameters.
tick
(
Constant
-
tick
Tick method.
Parameters:
-
tickTickA tick instance.
Returns:
Constant:
A state constant.
Properties
name
String
Node name. Default to Limiter.
parameters
String
Node parameters.
title
String
Node title. Default to Limit X Activations. Used in Editor.
