Reply To: FSM Transitions – frequency of checks

Forums 💬 NodeCanvas 🗨️ General Discussion FSM Transitions – frequency of checks Reply To: FSM Transitions – frequency of checks

#14524
Gavalakis
Keymaster

    Hello and thanks for getting NC 🙂

    To answer your questions,

    – Transitions are check in an Update(). Graphs that need updating are registering into MonoManager and it collectively calls them all. In Update.

    – Currently this is not possible out of the box. A transition’s condition is checked once per frame in an Update call. There is a workaround though. You can use FSM Callbacks to see when the state at question has been entered, and then manualy call CheckTransitions whenever it is required, although this might get a bit confusing depending on what exactly you want to do.
    Please take a look here and let me know if you need further directions:
    http://nodecanvas.com/documentation/graphs/state-machines/fsm-callbacks/

    – Yes, by the time the CheckTransition returns, the transition has already been made. The next state’s actions are already active.

    Cheers,
    Let me know if you have any more questions