ok where ever that graph is on the left make a variable called say “ClosestAI”, and set the type to your “AI Enemies” type. Then once you have found your closest enemy set that variable to it.
then when you deal your damage target “ClosestAI” as it will only contain your closest one