when u spawn an npc like a zombie will it attack u or ur enimies?
First : ai_disable
Disable AI first , so they won't attack you.
2: Spawn npc like npc_create npc_zombie
*if you want all of zombies to be your friend....just skip the 3rd.
3: aim at that npc and ~ type in ent_setname (name)
Ex: ent_setname zombie
4:ent_fire zombie setrelationship "player D_LI 99"
*For lots of zombies or NPCs :
ent_fire npc_zombie setrelationship "player D_LI 99"
Relationship code:
D_LI = Like
D_HT = Hate
After this you can do something funny like make them kill each other.
Ex: ent_fire npc_zombie setrelationship "npc_zombie D_HT 99"
PS: You can use this command to all of the NPCs in HL2. but some of them wont follow you as Antlions.
HAVE FUN!!!