Help Radius - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help Radius (
/showthread.php?tid=450823)
Help Radius -
Manowar - 14.07.2013
Hello everyone. I have problems in mathematics, tell me how to get a random position within a radius of 12.0, if we know the x, y, z
Respuesta: Help Radius -
Xabi - 14.07.2013
Make one random for the X axis between x - 12.0 and x + 12.0; repeat the same with the Y and the Z. After that, match the three random points to make a position in XYZ.
Re: Help Radius -
Manowar - 14.07.2013
Thanks