About the Behavior Tree Node.

NodeCanvas Forums Support About the Behavior Tree Node.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #13986
    guaiwulieren
    Participant

    the Behaviour Tree Node in FSM has two parameters, one is Success Status Event and other is Failure Status Event.
    I am trying to figure out how these two works, but still don’t know how to send these events to this Node.
    could you give me an example of this?

    #14014
    Gavalakis
    Keymaster

    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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.