register_trigger
Configure or list reactive interrupt triggers with priority preemption and cooldown guards for behavior trees, enabling automatic condition-based interrupts instead of manual pauses.
Instructions
Configure or list reactive interrupt triggers with priority preemption and cooldown guards (actions: register, list). Use register_trigger instead of abort_behavior when defining automatic condition-based interrupts rather than manually pausing or stopping a tree.
Returns registered trigger configuration, ID, or trigger list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Trigger name | |
| action | Yes | Trigger operation: register, list | |
| project | No | Target project slug | |
| priority | No | Preemption priority | |
| trigger_id | No | Trigger ID | |
| cooldown_ms | No | Minimum cooldown interval between fires | |
| behavior_name | No | Behavior tree to activate when condition fires | |
| condition_type | No | Condition type (e.g. hp_threshold, enemy_proximity) | |
| condition_params | No | Condition evaluation parameters |