Bug? following Behavior Tree Quick Start Guide

Hi,

I was following the documentation guide on Behavior Trees.
After completing the guide and finally testing the code, I ran into trouble with the enemy character.

In testing, after escaping the enemy’s line of sight, the enemy would not proceed with the patrol sequence; rather, it would stay in place.

This screenshot shows the game paused as it reaches the move to node, upon which it displays “move target: invalid”

What is the potential fix for this?

If you look in your BBT_FindRandomPatrol, click on the task and look in the details panel. Is PatrolLocation set to PatrolLocation? Once I found this and changed it to the correct value, the behavior tree ‘behaved’ appropriately.

Try adding a selector after the root and a bb based condition for not set to execute the random patrol