Issue with repeat node

Forums 💬 NodeCanvas ⚙️ Support Issue with repeat node

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #17224
    paul_blacklab
    Participant

      Hi
      I’m new to BT’s and trying out NodeCanvas. I’m stuck getting behaviours to go back to a previous node using the Repeat decorator.
      I have a branch to handle “patrolling”, i.e. looking for an enemy. When an enemy is found, I have a branch for shooting at the enemy, which is interrupted when the enemy is destroyed. I want it to return to patrolling. However the repeat decorator isn’t doing what I’d expect. The agents in the scene don’t do anything.
      Is my behaviour tree wrong? Do I need to do something to get the tree to restart?
      Thanks.

      #17225
      Gavalakis
      Keymaster

        Hello and sorry for the late reply (was on a small vacation) !

        Hmmm… After StopShooting action is “finished”, the tree should flow back to the Patrol SubTree indeed.
        Your tree looks totally correct in the screenshot. I just tried replicating your tree (with other actions of course) and it did worked as expected:
        [attachment file=”InterruptReplicate.png”]

        Can you please re-create the above image tree and let me know if that works for you as well? (The SubTree has just a single “Wait” action node).
        Is it also possible for you to please send me a small reproduction project to (support_AT_paradoxnotion.com) just to check out what can be possibly going wrong here?

        Please let me know.
        Thank you!

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