Will ‘Any State’ node ignore current Action task?

Forums 💬 NodeCanvas ⚙️ Support Will ‘Any State’ node ignore current Action task?

  • This topic has 0 replies, 3 voices, and was last updated 3 years ago by dominatorduck.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #15661
    whitedoggy
    Participant

      Hi.

      I have a simple question.

      Lets say

      1) we have one Action Node in Fsm that executes several action tasks.

      2) we also have ‘Any State’ Node.

      In this situation, It we enter to ‘Any State’ Node while we are still progressing the action tasks. what will happen?

      (Like if we played animation and set wait for finish in Action Node.)

       

      [attachment file=”16261″]

      #15664
      dominatorduck
      Participant

        Not having tested this, I’d guess C and D would not execute.

        You can easily test this with some dummy ActionTasks that wait for some time and then log something into the console. And have a transition that from AnyState to another state, maybe with a key press as a condition. Then debug and look at the logs!

        Notice you need implement OnStop in the ActionTasks, depending on how you implement the waiting.

        #15663
        Gavalakis
        Keymaster

          Hello,

          The AnyState transition is immediate and such the current action task will be interrupted/stopped and any other action tasks afterwards (C & D for example here) will be ignored and not execute at all. (All this considering that the actions are set to run in sequence rather than parallel of course).

          🙂

          #15662
          whitedoggy
          Participant

            That was what I need to hear! Thanks.

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