enemy Ai ability depending on distance