FSM: Iterate through list

NodeCanvas Forums Support FSM: Iterate through list

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

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

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

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