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!