Help with ents.create("NPC")

So, I’ve downloaded some SNPC Pack, and they seem to only target one person,

Is there any function/hook

that’ll get the NPC to detect the closest player ?

        for k, v in pairs( SpiderSpawnPoints ) do

                local zombie3 = ents.Create( "npc_mcspider_revised" )
				
                zombie3:SetPos( v.pos )
				
				zombie3:SetCollisionGroup( 2 )
				
                zombie3:Spawn()
				
                zombie3:Activate()

                numZombies = numZombies + 1
				

        end

That’s what I got,