Is it possible to return Failure and quit to distant parent task?

caleidon

Member
Is it possible to instead of just returning TaskStatus.Failure to also command the tree to perform sort of a GOTO command.

In my case, I'd like normal execution except when a special method is called inside OnUpdate. Then, the current Action should fail and execution shouldn't continue normally, but somewhere else. Either at a top-most parent, or manually defined.

Here's what I mean:

Screenshot_1.png
 
No, behavior trees are not able to do direct transitions like finite state machines.
 
Top