How to add sound to npcs

how can i add sound i searched around the google but nothing

Dont search google, search the wiki:

Also, we need you to be more specific. Do you want an NPC to make a sound: **[Entity.EmitSound

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Entity.EmitSound)**

i want to add sound like enemyahead or areaclear,enemeydown.

Are you using SNPC’s or ones built in

what is it ? SNPC my npc is a citizine but he use other model

SNPC is a [S]cripted [N]on [P]laying [C]haracter, which means that you have coded your own NPC.

Non Player Character

:eng99:

Snpc

help please

So you coded it fully yourself 100%?

ENT.Initialize(), ENT.Think() etc?

here is a the code local Category = “German Soldier”

local NPC = { Name = "German zombie ",
Class = “npc_citizen”,
Model = “models/nazizombie.mdl”,
Health = “150”,
KeyValues = { citizentype = 4 },
Category = Category }

list.Set( “NPC”, “German zombie”, NPC )

If you are doing a zombie, shouldn’t it be npc_zombie? not npc_citizen?

^ This

Use Code Tags



local Category = "German Soldier"


local NPC = { 	Name = "German zombie ", 
				Class = "npc_citizen",
				Model = "models/nazizombie.mdl",
				Health = "150",
				KeyValues = { citizentype = 4 },
				Category = Category	}


list.Set( "NPC", "German zombie", NPC )


And that’s not the script.
We’re talking about the files that should be in
lua/entities/“folder_name”/shared.lua, init.lua, cl_init.lua