Enemy attack radius

I have a question and hope someone can help me.

I’m currently Working on an Pixel-Top Down-Survival Game (3D) and want that an Enemy follows me and attacks me if i walk into a (maby) invisible radius.

Thanks for helping ! LG Stephan

This page in the doc will show you how to calculate the distance between two objet. Using that you can check if that distance is inferior to your enemy “field of view” and that will do.

If you don’t know how to make an enemy following you, I suggest to checkout this tutorial :