Reply To: Handling if true X else Y?

Forums 💬 NodeCanvas 🗨️ General Discussion Handling if true X else Y? Reply To: Handling if true X else Y?

#15022
Gavalakis
Keymaster

    There are more than one ways to go with if-then-else in Behaviour Trees. The tree ‘onerain88’ posted is one way. It uses an ‘Accessor Decorator’, which can be assigned a condition Task and will execute it’s child node ‘x’ only if that condition assigned is true, else it will return Failure immediately (and thus the Selector will execute the next child ‘y’).

    Another way would be the attached one. Both ways do the same, but personaly I would recomment using the Accessor Decorator 🙂