Hello and sorry for the late reply due to xmas vacation.
When the Sub-Tree root node returns/finish in Success, then an event with the same name as in “Success Event” will be sent to the FSM.
When the Sub-Tree root node return/finish in Failure, then an event with the same name as in “Failure Event” will be sent to the FSM.
Then to make use of these events send (if any), you will need to use the “Check Event” condition on any outgoing transition of that same Sub-Tree node in the FSM. You will of course need to set the “Event Name” of the “Check Event” condition to be the same as the “Success Event” or “Failure Event” accordingly.
So, “Succees Event” and “Failure Event” if set, is basically a way to signal the FSM that the Sub-Behaviour Tree has finished, and thus make a transition to another state happen.
If you still need help with this, please let me know I will send you an example unitypackage if you want.
Thanks!
Join us on Discord: https://discord.gg/97q2Rjh
Login
Register
By registering on this website you agree to our Privacy Policy.