State OnExit callbacks

Forums 💬 NodeCanvas ⚙️ Support State OnExit callbacks

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #16445
    bestpig
    Participant

      I want to call some functions right before a state exits out of a state. Is the only way to do this is to use IStateCallbackReceiver to manually check which state was exited from? Or is an OnExit action I can use in the FSM editor?

      #16446
      Gavalakis
      Keymaster

        Hello,

        If you are assigning custom Action Tasks in an FSM Action State, then you can use the OnStop override in that Action Task, which is (also) called when the state exits. There is also a special node called “Super Action State”, which provides a separate actions lists for when the state enters, updates as well as exits. Please let me know if either works for you.

        Thanks 🙂

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