Mark action optionnal.

NodeCanvas Forums Support Mark action optionnal.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #12257
    Driiade
    Participant

    Hello,

    I’am encountering the case where i want to wait for an action to stop running BUT also that others action continue to running in parallel.
    And in this state, the only condition for exiting it is an OnFinish condition.

    I’am blocked with that :'(

    Can you add a optionnal mark for an action ?
    Or there is a way to do what i want to do ? :p

    #12263
    Gavalakis
    Keymaster

    Hey,

    I am really not sure I understand what you mean. :/
    You can have any number of actions in the same list and even if one of them is finished, the others will still continue to run in parallel.
    Can you please explain?

    Thanks.

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

    #12272
    Driiade
    Participant

    Hey !

    Sorry for my english :'(

    What i want is that some actions will not be counted when the state has to finish.
    For example i have A,B,C actions, I want A to finish for transiting to the next state. B and C have to run as long as the state is running (so as long as A is running in this case).

    For the moment it’s totally impossible.
    What I made is an action with a list of optionnal action and a list of necesssary action, but the UI is horrible (list in list in list in list someTime :s :'( 🙁 )

    #12281
    Gavalakis
    Keymaster

    Hello again and sorry for the late reply.

    No problem. I completely understand what you mean now.
    Indeed this is not possible at least right now and will best require a new node.
    Instead of using nested lists within lists in a custom ActionTask, you could probably instead create a custom FSM node with two ActionLists, where one is required and the other is optional. A good start for creating such a node, would be to look at the included “SuperActionState” node (which makes use of more than one ActionLists effectively and with cleaner UI).

    If you want I can help you with the code for making such a node.
    Let me know if so.

    Thanks!

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

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