bt_add_run_eqs_service
Attach or update a Run EQS service on a Behavior Tree node, running an EQS query while the branch is active and storing the result in a Blackboard key.
Instructions
Attach or update a built-in Run EQS service on a Behavior Tree node.
The service runs an EQS query while its parent branch is active and writes the selected result into a Blackboard key.
Args: behavior_tree_name: Existing Behavior Tree asset name query_path: EQS query path or unique asset name result_key: Blackboard key that receives the query result parent_node_index: 0-based non-root BT node index; -1 targets first non-root node run_mode: single_result, random_best_5_pct, random_best_25_pct, or all_matching update_bb_on_fail: Whether failed queries also update the Blackboard interval: Service tick interval in seconds update_existing: Update an existing Run EQS service on the parent if present
KB: see knowledge_base/04_AI_SYSTEMS.md#overview Example: bt_add_run_eqs_service(behavior_tree_name="ExampleName", query_path="/Game/MCP_Test/Example", result_key="ExampleName")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| interval | No | ||
| run_mode | No | single_result | |
| query_path | Yes | ||
| result_key | Yes | ||
| update_existing | No | ||
| parent_node_index | No | ||
| update_bb_on_fail | No | ||
| behavior_tree_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |