checking for entities in a distance ignoring y

how can I check for @e in distance ..30 but only on x and z, so they can be as high or as low as they want from the source and still get detected

Continue to help post