Yes, I know NPC Spawners exist, but I have yet to see a spawner that can spawn custom NPCs, only the default NPCs. Is there one out there that does that, if not, do you think someone can make it?
Heres a concommand that can spawn npcs by inputting their class name
Something like that
[code]
function SpawnSpecifiedNpc(ply,cmd,args)
if !ply:IsAdmin() then return end
npc=ents.create("npc_"..args[1])
npc:SetPos(ply:GetEyeTrace().HitPos)
npc:Spawn()
end
concommand.Add("Spawnnpc",SpawnSpecifiedNpc)
[/code]
Sorry, you need to Log In to post a reply to this thread.