Why isn't this conditional abort working properly?

insane245

New member
I have a parallel that deals with some combat and animation behavior. Repeats end on failure. Whenever I am within distance of the AI though, it just wanders. If I remove the wander task the parallel will restart if I get too far away and come back in range.

What am I misunderstanding here?
 

Attachments

  • opsiveAsk.PNG
    opsiveAsk.PNG
    57.7 KB · Views: 22
Conditional aborts on parallel tasks will lead to unknown behavior. Parallel tasks already reevaluate their children so there's no need for a conditional abort on them. You should instead structure your tree similar to this example where it flips between the Selector / Sequence combo:

 
Top