• How do I auto-spawn entities?
    2 replies, posted
I have 2 different entities that I need to spawn when the server starts, They are both points for Custom spawnpoints. The spawning on ents works fine but I can't figure out how to auto spawn them (Yes, I did search but the already existing threads were no help). Both ents have about 6 or 7 places I would like them to spawn. Any help would be greatly appreciated :)
Use ents.Create on the InitPostEntity hook. Example: [lua]function SpawnEnt() local ent = ents.Create("sent_ball") ent:SetPos(Vector(32,32,32)) ent:Spawn() ent:Activate() end hook.Add("InitPostEntity", "MapSpawn", SpawnEnt)[/lua]
Worked fine, Thank you :)
Sorry, you need to Log In to post a reply to this thread.