How to Get the 'currentIteration' value

Forums 💬 NodeCanvas 🗨️ General Discussion How to Get the 'currentIteration' value

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #14643
    vijay09
    Participant

      Hi

      i am brought node canvas for one my project, its really good – saves lots of time.

      i am just a beginner to this domain, i have a scenario where the ‘send action’ need to be iterated for 5 times, but when the ‘currentiteration’ variable becomes more than two – i want to display a UI saying ‘Need Help’. i am struggling to get the variable from the BTRepeater script to BTCondition script. Kindly can you help me, with this. I am attaching the JPG of the behavioral tree that i have done and put some making of what i want to achieve

      Thank you

      #14644
      Gavalakis
      Keymaster

        Hello,
        Sorry for late reply.
        You could use a variable to store and reset the current interation, but cerainly this could be easier. So for the next version, I added an option in the Repeater to store the current interation to a variable for you witout having to do all this (image attached)

        Let me know,
        Cheers!

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