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:
Errorif can't complete within tick limit
| Param | Type | Description |
|---|---|---|
| behavior | Behavior.<CTX> | |
| context | CTX | behavior context, will be passed into behavior initialization |
| [tick_limit] | number |