Hello everyone!
I'm trying to make an enemy spawner that would spawn an enemy/entity in a radius around a set position. So if any of you know the algorithm or have a code snippet that I could use that'd be awesome(I only need the setPos part the rest I can do myself)
Thanks in advance!
Lets say you have a entity thats the spawn point (which you need. obviously). If that ENT is drawing, inside that ENT:Draw function make ents.Create
to create zombies.
Zombies:SetPos (Spawner:GetPos () + math.random (1,50))
Zombies are tje zombie npc entitiys, Spawner is..the spawner. If you dont know what this is supposed to do or how its supposed to work just reply to me and i explain
Ah Great! That's the solution of my problem Thanks a lot!
np, next time pls click reply under my comment so i get the notification. I just saw your answer beause i randomly went in this thread again.
You can subscribe to threads for that - check the top right corner on any thread page.
Sorry, you need to Log In to post a reply to this thread.