FSM finishing

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #12585
    mgb
    Participant

    Hey,
    Looking into why my FSM never calls the finish callback.
    Saw this in the changelog:
    “New: FSMs will now not be Finished/Stopped if there is an AnyState node active”

    So if there’s an AnyState node my FSM won’t finish now, even if it hits a state with no transitions?

    #12588
    Gavalakis
    Keymaster

    Hello,

    Yes that is correct. Even if the FSM hits a state without transitions, but the FSM has any AnyState node active, it will not “Finish”, because considering the fact that there is an AnyState node in the FSM, the FSM can potentially transition and continue, even from the state without outgoing transitions at any time. Thus it is never considered “Finished” in that case.
    You can however if required to finish the FSM, use the “Force Finish Graph” action task at a state of your choosing.

    Let me know if that works for you.
    Thanks.

    Join us on Discord: https://discord.gg/97q2Rjh

    #12593
    mgb
    Participant

    Ah ok got it, thanks!

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