AI controller Pawn sensing only attacking to one player ue4

this is my AI enemy:

somethimes my AI is not tracing and sensing players
i think its stopped tracing players
so any suggestions?
for example 20 enemys somethimes attacking to only one player.
they ignore other players

Hi There, typically inside your enemy controll logic, on see pawn event, add it to an array to save all actors of class with tag. Then, create a logic to select the best target from that array, for instance the closest target in sight or closest target heard by the hearing sense component within hearing range. Lastly, set the update time, for instance, either every 8 secs or if current target is no longer valid, and re-run the logic.

Hope that helps.