Will ‘Any State’ node ignore current Action task?

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #16260
    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.)

     

    KakaoTalk_20220602_182904860

    Attachments:
    You must be logged in to view attached files.
    #16272
    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.

    #16279
    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).

    🙂

    Join us on Discord: https://discord.gg/97q2Rjh

    #16294
    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.