add_bt_blackboard_decorator
Add a Blackboard Decorator to gate a Behavior Tree branch on a blackboard key condition. Set observer abort options to control re-evaluation and branch cancellation.
Instructions
Add a Blackboard Decorator to a Behavior Tree sequence/task node.
Ch.10: Decorators are conditions that control whether a BT branch can execute. A Blackboard Decorator checks a key's value to allow or abort execution.
Args: behavior_tree_name: Behavior Tree asset name sequence_name: Name of the Sequence/Task node to decorate blackboard_key: Blackboard key to monitor (e.g., "HasHeardSound", "bCanSeePlayer") observer_aborts: "None", "Self", "LowerPriority", "Both" node_name: Display name for the decorator node
KB: see knowledge_base/04_AI_SYSTEMS.md#overview Example: add_bt_blackboard_decorator(behavior_tree_name="ExampleName", sequence_name="ExampleName", blackboard_key="ExampleName")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_name | No | ||
| sequence_name | Yes | ||
| blackboard_key | Yes | ||
| observer_aborts | No | LowerPriority | |
| behavior_tree_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |