Make AI move away from Enemy AI

what do you trying to cast?

Use for example GetAllActorsOfClass or setup AIPerception system to make your character find enemies by himself.