Skip to main content

syncExecuteBehaviorToCompletion

syncExecuteBehaviorToCompletion(behavior, context, [tick_limit]) ⇒ BehaviorStatus

Synchronously executes behavior from start to finish, or throws if could not be completed within set number of ticks

Kind: global function
Returns: BehaviorStatus - completion status
Throws:

  • Error if can't complete within tick limit
ParamTypeDescription
behaviorBehavior.<CTX>
contextCTXbehavior context, will be passed into behavior initialization
[tick_limit]number