Here’s one way to approach it, psuedo-BehaviorTree of the patrol state, then goes into a get closer state (if within FOV but not engagement distance), and then into the attack state if within FOV + engagement distance.