How i can put the sight of aiperception to dont block with npc

Hi, im doing a strategy game, a tower defense, i hace the ai perception and the aiperceptionstimuli. It works, but i dont like how works to me game.
If i have 5 npc vs 5 npc, diferents teams, the mesh or the capsule component block the sight to others, i want to detect all npc in the range, but if they are in a line, only the first of their team detect one enemy.
I dont know hot to change the collisions of the capsule or the mesh to dont block the sight. Or other solution for my problem.