How To Make A Ranged AI With State Trees

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.

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)

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