How to effectively implement this function using abort functions

malo

New member
1733105743225.png
I have a tree like the picture, tasks A and B are conditions, and tasks C and D are actions. C and D are continuously in the running state. I want to implement the following functions:
1. Any of tasks A and B changes will interrput task D
2. When tasks A and B meet the conditions, task C will run, and the running process will not be interrupted due to changes in the conditions of A and B
If I want to meet the first function, I need to set the abort type as lower priority for the first Sequece and the second Selector. However, once the second Selector is set to lower priority , any change in A and B will also interrupt the running status of C. How do I need to build or expand the behavior tree to effectively implement this function?
 
Instead of using conditional aborts it sounds like you should use the interrupt/perform interruption tasks. You are not able to customize conditional aborts beyond the abort type but the interrupt tasks give you a lot more control over when the interruption occurs.
 
Instead of using conditional aborts it sounds like you should use the interrupt/perform interruption tasks. You are not able to customize conditional aborts beyond the abort type but the interrupt tasks give you a lot more control over when the interruption occurs.
Would u please give me an example to implement it? If I use the interrupt/perform interruption tasks, I think the taskA and taskB will not reevaluate every frame, because the prarent tasks don't have the abort ability.
 
I actually thought of a way without needing the interrupt task. Something like below, using the Parallel task (which is what you'd need to use with the Interrupt task as well):

1733145360830.png
 
Back
Top