The question I'm asking is too big for it to be the title.

I want to make an ent that will scan for all the ents in the map, and look for a specific class name and the same owner as itself.
I know how to tell if it’s a specific class and the same owner of itself, All I need to know is how it looks for all the ents in the map.

THANK YOU!!!
hugs