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.
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:
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?