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

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!


@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

Other tutorials:

(4) make ai follow and attack player blueprints ue5 - YouTube

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)