# How can I make an enemy AI chase and attack the player using only Blueprints? 

**URL:** <https://forums.unrealengine.com/t/how-can-i-make-an-enemy-ai-chase-and-attack-the-player-using-only-blueprints/2621236>\
**Category:** World Creation\
**Tags:** unreal-engine, Performance, question\
**Created:** [July 28, 2025, 1:24pm UTC](https://forums.unrealengine.com/t/how-can-i-make-an-enemy-ai-chase-and-attack-the-player-using-only-blueprints/2621236 "2025-07-28T13:24:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![auroraxguo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@auroraxguo](https://forums.unrealengine.com/u/auroraxguo)\
**Post date:** [July 28, 2025, 1:24pm UTC](https://forums.unrealengine.com/t/how-can-i-make-an-enemy-ai-chase-and-attack-the-player-using-only-blueprints/2621236/1 "2025-07-28T13:24:56Z")

</div>

Hi everyone,  
I’m creating a basic third-person game in Unreal Engine 5 and I want to build a simple enemy AI that can detect the player, chase them, and attack when close enough — all using Blueprints (no C++).

So far, I’ve set up the AI Controller and Navigation, and the enemy can move toward the player. But I’m struggling with making the behavior more natural:

- How do I detect when the player is in range for an attack?
- How should I handle transitions between chasing and attacking?
- Should I use Behavior Trees or is a State Machine enough?

Any tips, examples, or tutorials would be greatly appreciated. Thanks!

---

<div class="post-metadata">

**Author:** ![Infant\_Zero](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/infant_zero/32/715655_2.png) [@Infant\_Zero](https://forums.unrealengine.com/u/Infant_Zero)\
**Post date:** [July 28, 2025, 2:16pm UTC](https://forums.unrealengine.com/t/how-can-i-make-an-enemy-ai-chase-and-attack-the-player-using-only-blueprints/2621236/2 "2025-07-28T14:16:43Z")

</div>

[  
@Twan\_so-kl  
 ](https://dev.epicgames.com/community/api/user_profiles/tab-redirect/about?discourse_username=Twan_so-kl) had issues with a particular, unrelated portion of his project, but his attached video below shows a functioning example of an easy AI control. His/Hers would be a good example to follow.

[Child blueprint doesn’t follow logic from parent blueprint - Programming & Scripting / Blueprint - Epic Developer Community Forums](https://forums.unrealengine.com/t/child-blueprint-doesnt-follow-logic-from-parent-blueprint/2590414)

Other tutorials:

[(4) make ai follow and attack player blueprints ue5 - YouTube](https://www.youtube.com/results?search_query=make+ai+follow+and+attack+player+blueprints+ue5)

If you decide to go with Behavior Trees, which I’d personally recommend, below is a good tutorial series:

[Smart Enemy AI | (Part 1: Behavior Trees) | Tutorial in Unreal Engine 5 (UE5)](https://www.youtube.com/watch?v=-t3PbGRazKg&list=PLNwKK6OwH7eW1n49TW6-FmiZhqRn97cRy)
