Built-in Node Library#
The omni.behavior.tree.core extension provides the built-in node library. These types are always available when the behavior tree system is enabled.
Composite Nodes#
Composite nodes control the execution flow of their children.
Type |
Description |
Ports |
|---|---|---|
Sequence |
Ticks children in order; fails on first failure (AND gate). |
(none) |
Selector |
Ticks children in order; succeeds on first success (OR gate). |
|
Parallel |
Ticks all children concurrently each tick. Completes when either threshold is reached. |
success_count · int · default -1 (all children must succeed)failure_count · int · default 1 |
Action Nodes#
Action nodes are leaf nodes that perform work and return a status.
Type |
Description |
Ports |
|---|---|---|
Wait |
Returns |
|
SetBlackboard |
Writes a value to a blackboard slot. The |
slot · BlackboardRefvalue · any type · optional |
LogMessage |
Logs a message and returns |
|
DispatchEvent |
Fires a named carb event. |
event_name · stringpayload_key · string · default ""blackboard_key · string · default "" |
PushQueue |
Appends an item to a FIFO queue stored at a blackboard slot. |
queue · BlackboardRef · pointer-style slot referenceitem · any typeunique · bool · default false |
Modifier Types#
Modifiers attach to any node and wrap its execution. They support Abort Mode for reactive behavior (see User Guide for details on abort modes).
Type |
Description |
Input Ports |
Output Ports |
|---|---|---|---|
Repeat |
Repeats child N times (counts completions). |
count · int · default 0 (infinite)break_on_failure · bool · default false |
|
Retry |
Re-ticks child on failure. |
max_retries · int · default 0 (infinite)reset_on_success · bool · default true |
|
InvertStatus |
Inverts child’s success/failure. |
||
ForceStatus |
Returns configured status when child finishes. |
status · string · default "success"Choices:
success, failure |
|
Delay |
Waits before ticking child. |
|
|
Timeout |
Fails if child doesn’t finish in time. |
|
|
Cooldown |
Ticks child, then waits before completing. |
|
|
CheckBlackboard |
Checks a blackboard entry against a condition. Uses |
key · stringquery · string · default "IsSet"Choices:
IsSet, IsNotSet, Equals, NotEqualscompare_value · string |
|
CheckEvent |
Returns |
event_name · stringpayload_key · string · default ""blackboard_key · string · default ""timeout · float · default 0.0 (wait indefinitely) |
|
RandomUniformFloat |
Samples a random float in [min, max), cached until reset. |
min · float · default 0.0max · float · default 1.0seed · int · default 0 (negative = non-deterministic) |
|
RandomUniformInt |
Samples a random integer in [min, max], cached until reset. |
min · int · default 0max · int · default 100seed · int · default 0 (negative = non-deterministic) |
|
RandomChoice |
Picks a random element from an array. |
choices · arrayseed · int · default 0 (negative = non-deterministic) |
|
PopQueue |
Atomically pops the head of a FIFO queue, binds it to the |
queue · BlackboardRef · pointer-style slot referenceon_empty · string · default "Wait" · Choices: Wait, Fail |
|