Is there any way to ignore conditional abort when doing a task?

Jackie Xie

New member
I am doing a quite simple Behavior System, a part of it looks like below:

1568580341540.png

I want the enemy chase the player when it's get too far from the player and dodge back when it's get too close. So I design the tree like this. The problem is sometimes it would get too far to player during the dodge task (like when player flee fast from the enemy at the same time), so in this case the task would be interrupted by the first "Is Remote" condition. However, dodge should run to end to fully execute the animation, so I don't want dodge task to be interrupted after it got start. How can I do it? Is there any way for use to lock a task from being interrupted by a conditional abort?
 
Top