# How Can I make An advanced Patrolling AI

**URL:** <https://forums.unrealengine.com/t/how-can-i-make-an-advanced-patrolling-ai/2734473>\
**Category:** AI\
**Tags:** ai-controller, unreal-engine, question, Blueprint\
**Created:** [July 8, 2026, 6:57pm UTC](https://forums.unrealengine.com/t/how-can-i-make-an-advanced-patrolling-ai/2734473 "2026-07-08T18:57:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryd3r09](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ryd3r09](https://forums.unrealengine.com/u/Ryd3r09)\
**Post date:** [July 8, 2026, 6:57pm UTC](https://forums.unrealengine.com/t/how-can-i-make-an-advanced-patrolling-ai/2734473/1 "2026-07-08T18:57:21Z")

</div>

Hello

I want to make an enemy ai for my game with multiple features but right now I’m working on patrolling and found a system I [like.](https://youtube.com/shorts/6EfBda6EV1Q?si=cDHntTYuvpuZJLlu) It makes it so the enemy patrols in random spots along the path and uses raycasts to turn the ai when it stops to face the open area. It chooses the spot to go to based on visibility and which is easily accessible. My only issue is that I dont understand state trees or really anything with ai. How can I replicate this system.

---

<div class="post-metadata">

**Author:** ![dZh0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dZh0](https://forums.unrealengine.com/u/dZh0)\
**Post date:** [July 9, 2026, 7:06pm UTC](https://forums.unrealengine.com/t/how-can-i-make-an-advanced-patrolling-ai/2734473/2 "2026-07-09T19:06:51Z")

</div>

Use [Behavior Trees](https://dev.epicgames.com/documentation/unreal-engine/behavior-trees-in-unreal-engine) and [AI Perception](https://dev.epicgames.com/documentation/unreal-engine/ai-perception-in-unreal-engine) system.

Actually check the whole [Artificial Intelligence documentation](https://dev.epicgames.com/documentation/unreal-engine/artificial-intelligence-in-unreal-engine).

Other than that that there are bunch of YouTube tutorials.
