Check conditions manually in a FSM

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #13243
    sk4toor
    Participant

      Hi everyone, im looking out for a general workflow when choosing to check conditions manually for an action within a state machine.

      #13246
      Gavalakis
      Keymaster

        Hello and happy new year!

        Are you referring to the “Check Manually” option found inn states in regards to transition conditions?

        #13245
        sk4toor
        Participant

          Exactly 🙂

          #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!

             

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