# How To Make A Ranged AI With State Trees

**URL:** <https://forums.unrealengine.com/t/how-to-make-a-ranged-ai-with-state-trees/2736759>\
**Category:** AI\
**Tags:** ai-controller, unreal-engine, enemy, Blueprint, question\
**Created:** [July 19, 2026, 2:14am UTC](https://forums.unrealengine.com/t/how-to-make-a-ranged-ai-with-state-trees/2736759 "2026-07-19T02:14:09Z")\
**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 19, 2026, 2:14am UTC](https://forums.unrealengine.com/t/how-to-make-a-ranged-ai-with-state-trees/2736759/1 "2026-07-19T02:14:09Z")

</div>

Hello

Im currently working on making the enemy ai for my game using state trees and want to make him shoot weapons at the player from afar. Would I use the same system I have seen in tutorials for behavior trees where they use an eqs to find best position to shoot from and then make a state task to move the ai there or is there a better way of doing this.

---

<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 19, 2026, 3:32am UTC](https://forums.unrealengine.com/t/how-to-make-a-ranged-ai-with-state-trees/2736759/2 "2026-07-19T03:32:57Z")

</div>

Yes, the same system is perfect, you would just make a modified tree for ranged enemies. See here:

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

You may need to check some of the previous parts to get up to speed with Part 6.
