FInd Random Patrol In AI Tutorial Not Working

I created almost the same setup as stated in this tutorial from the UE documentation:
[Behavior Tree in Unreal Engine - Quick Start Guide | Unreal Engine 5.1 Documentation][1]

However, the AI enemy chases the player but doesn’t keep patrolling the area when it cannot see the player. I verified that I have all the required scripts several times, but still cannot find the problem. A screenshot of the Behaviour tree running, is attached, In the tutorial, the ‘Move To’ function of the Patrol sequence was being executed, but here, only the Wait function is executed. The screenshots of the BTT_FindRandomPatrol function are also attached. What is the issue and what am I missing? Thanks in advance.

I just worked through this same tutorial myself and had the same error. Here is the solution that worked for me. 1) Open BTT_FindRandomPatrol. 2) click PatrolLocation on the left-hand Variables list 3) click “Instance Editable” in the right-hand details tab. 4) compile and save

Next in the BT_Enemy (Behavior Tree Tab) 1) click the BTT_FindRandomPatrol (task in purple on the tree) 2) in the left-hand details panel change the PatrolLocation (which should now be visible since we changed to “Instance Editable”) drop-down from EnemyActor to PartrolLocation.

Save and compile everything and it should work now.

7 Likes

Encountered this problem and your check / solution worked for me. Thank you! Have a nice day!

Many thanks! Worked for me, too.

Same problem, your solution worked, Many thanks.