Behaviour Tree Decorator

Hi,

I have this simple behaviour tree which checks for a HasPatrolRoute which generates a bunch of patrol points for the NPC and then should start patrolling the points based on the HasPatrolRoute is true or false.

As you can see once the tree goes back to the Root node and reruns the tree it ignores the "If the HasPatrolRoute is not set as you can see HasPatrolRoute is set to True so why does it not go down the other branch to start patrolling??

Thanks for any replies!

The decorator is in the wrong place. Bring it down, to the branchs you want to exec or not exec depending on the condition. So, to the lower sequence and/or to the GeneratePatrolPoints.

Many thnaks!

I spent numerous hours tryign to work that out!

Now just need to work out why the IncrementPatrolIndex isnt working,