Reply To: Check conditions manually in a FSM

Forums 💬 NodeCanvas 🗨️ General Discussion Check conditions manually in a FSM Reply To: Check conditions manually in a FSM

#13244
Gavalakis
Keymaster

    Hi,

    In short, you need to get a reference to the State you want and call CheckTransitions() to that State reference.

    Getting a reference to the State you want can be done in various ways through the FSMOwner.behaviour property (which returns your FSM) like for example by FSMOwner.behaviour.GetStateByName, FSMOwner.behaviour.currentState, FSMOwner.behaviour.previousState etc.

    Let me know if that helps 🙂

    Thanks!