Iterate Node, current index and indexOf

Forums 💬 NodeCanvas 🗨️ General Discussion Iterate Node, current index and indexOf

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #14160
    chocolacode
    Participant

      Hey,

      I am working with Behavior Tree and I want to suggest the following 2 additions…

      can you please add a field to get the Current Index in the Behavior Tree Iterate node?
      and to add a task to get list item index when providing a List Item value , specifically…”list.IndexOf(item.value)”

      thanks!

      Cheers!

      sorry to bombard you with many questions/requests in all your forums 🙂 I am using BT, NC and FS in my project

      #14161
      Gavalakis
      Keymaster

        Hey,

        Don’t worry. No problem 🙂
        Sure. I will add saving the current index of the Iterate Decorator node in the next update.
        As for an IndexOf action, here you are 🙂

        GetIndexOfElement.cs

        Feel free to place it under “NodeCanvas/Tasks/Actions/Blackboard/List Specific” since I will also include this in the next update.
        Cheers!

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