Flow nodes contain at least one child node, and control the execution of a behavior tree by describing the rules by which each of their children nodes must be executed. The different types of Flow nodes are as follows.
Description | Executes each of its children nodes in the order that they're defined, one at a time, until one child fails or all children nodes succeed. | ||||||
Parameters Accepted | None. | ||||||
Results |
| ||||||
Additional Information |
|
Description | Executes each of its children nodes in the order that they're defined, one at a time, until a child node succeeds. | ||||||
Parameters Accepted | None. | ||||||
Results |
| ||||||
Additional Information | Must have at least one child node specified. |
Description | Executes each of its children nodes in decreasing order of their priority, one at a time; each child node is assigned a priority level (the top-most/first child being of the highest priority) and a condition that is evaluated dynamically. This means that a child node is executed only if its associated condition is satisfied; as soon as a node fails its condition check, the conditions of lower priority children nodes are re-evaluated. Execution then resumes at the node with the highest priority and a satisfied condition. | ||||||
Parameters Accepted |
| ||||||
Results |
| ||||||
Additional Information | The last child node of a Priority node must be defined with an empty condition, that always yields a successful result. This node acts as a "fallback", representing the default behavior that must be carried out if all higher priority children of the Priority node have failed. |
Description | Executes its children nodes in parallel. | ||||||
Parameters Accepted |
| ||||||
Results |
| ||||||
Additional Information | Maximum number of parallel children nodes: 32. |
Description | Has only a single child node, which it executes either a fixed number of times, infinitely or until the child fails. | ||||||
Parameters Accepted |
| ||||||
Results |
| ||||||
Additional Information | None. |
Description | Has only a single child node which it executes either a fixed number of times, infinitely or until the child succeeds. | ||||||
Parameters Accepted |
| ||||||
Results |
| ||||||
Additional Information | None. |
Description | Has one or more States as its children that are executed in the order they are defined, one at a time. At any time, the state of a State Machine node is the same as the state of its child that is currently being executed. Every State must have as part of its definition:
| |||||||||||||||
Parameters Accepted | States
Transitions
| |||||||||||||||
Results |
| |||||||||||||||
Additional Information | None. |
Description | Allows Events to be sent from within a defined State of the parent State Machine node, hence triggering a transition to the Destination State of the State Machine. Send Transition Event nodes are used in conjunction with State Machine nodes, to trigger transitions from one State of the State Machine node to another. | ||||||
Parameters accepted |
| ||||||
Results |
| ||||||
Additional Information | None. |