Get radius ?
#1

Hey , I'm making a zombie bot system for my server , so I wanna make a radius around the player of for exemple 10 meters , & spawn randomly the npc zombie , the problem is I don't know how to get that radius... any ideas ?
Reply
#2

Get the player's position and then spawn a zombie with a random (max + 10) on the Y-axis and then a random X.
Reply
#3

This seams like a request, i suggest you post in the script request thread #6/7
Reply
#4

You could do something like this:


pawn Код:
new pos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SpawnZombie(pos[0] + random(10), pos[1] + random(10), pos[2]);
Reply
#5

Quote:
Originally Posted by AlonzoTorres
Посмотреть сообщение
Get the player's position and then spawn a zombie with a random (max + 10) on the Y-axis and then a random X.
Thanks man ! Great way to get it

Quote:
Originally Posted by zT KiNgKoNg
Посмотреть сообщение
This seams like a request, i suggest you post in the script request thread #6/7
No i just wanted the way how to do it

thank u all
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)