EQS: How to find the AI that is the closest to the player

Still runs red, doesnt print and “closestAI” is still “none” and it still stops in the player character at the “get is valid”