How to make something similar to "AI move to to", but with a cone shaped "sight"?

With “AI move to”, my enemy follow my character, until the acceptance radius is 1, then it performs an attack animation. The problem is that since it a radius shape if I stand behind the enemy, it still does the attack animation infinitly and will always miss the character. I wanted to use something cone shaped instead of a radius, this way If I stand behind the enemy, it will have to start following me again before attacking. How do I solve this problem?

So you basically want to attack if both are facing each other?

Guess the easiest one would be to compare their rotation…if both have the same rotation enemy is behind, if the rotation has a difference ~170-190° (your own choice) they are facing.

Here is my solution. Input for the Sight Degrees variable can be from 0 to 360.