NPC KillZone question

Nooby scripter here,
I am trying to make a safe house where npc's die when collided with. Kind of a hard one for me as I don't know how to reference them from the hierarchy since they are spawned.

So I downloaded community killzone scripts and
I tried modifying a few killzone scripts to kill non players
I tried changing the teams

without any results

Thank you in advance for your help