A composite that runs all children, regardless of returned status

Forums 💬 NodeCanvas 🤩 Custom Nodes and Tasks A composite that runs all children, regardless of returned status

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #12906
    bcristian
    Participant

      Hello

      The following composite will run all the children, regardless of their return status.
      The same can be achieved using the Optional decorator, but on large graphs that is error-prone and does not immediately convey intent. For example, iterating an empty collection yields a failure. But depending on context, this might or might not be the proper semantic.
      Using this composite clearly conveys the intent of executing all the actions.

      #12909
      arachnidjacob
      Participant

        Is there a reason why most behaviour tree implementations dont include a node like this? Is it considered bad design to have many nodes “running” at the same time?

        #12908
        timv
        Participant

          I made an icon for this node. I think it turned out ok. You may find it useful.

          #12907
          Gavalakis
          Keymaster

            Hey,
            Thanks for sharing 🙂

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