How to make ai character target nearest actor?

I have been Googling this for hours… I have a multiplayer game and would like my AI character to target the nearest player. I can’t believe I didn’t find much on this topic. I know I have to find all actors of class and do a ForEachLoop, but I’m stuck after that. Any help would be awesome!! Thanks