FSM: Iterate through list

Forums 💬 NodeCanvas ⚙️ Support FSM: Iterate through list

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #15302
    wedgiebee
    Participant

      In an FSM, how do I easily iterate through a list of objects? Either to set them all active/inactive, or call a function on all of them, etc.?

      #15304
      Gavalakis
      Keymaster

        Hello and sorry for the late reply.
        In an FSMs there is no built-in way of iterating a list of objects like for example the iterator node that the BTs have (if that is what you meant). I can create a new Action to do that though, I have added this in the roadmap 🙂
        Thank you for your suggestion.

        #15303
        wedgiebee
        Participant

          Got it! Yeah that would be awesome, specifically with the ability to call ExecuteMethod on each item you iterate through.

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