Getting random cordinates within a checkpoint
#1

I am trying to find a way to drop an object at a random point within a large checkpoint. The checkpoint spawns at a random location and starts at a radius of about 200 and slowly gets smaller as the game proceeds. I have tried to no avail of generating a random x and y cordinate within the checkpoint making an array for example will not work as the checkpoint spawns at a complete random location every time. Is there anyone out there good with math that can help point me in the right direction?

I will be using the mapandreas plugin to find the z cordinate and that is why I just need a way to generate an X and Y cordinate within a checkpoint.
Reply


Messages In This Thread
Getting random cordinates within a checkpoint - by HBG - 02.09.2015, 00:44
Re: Getting random cordinates within a checkpoint - by SickAttack - 02.09.2015, 00:57
Re: Getting random cordinates within a checkpoint - by HBG - 02.09.2015, 01:24
Re: Getting random cordinates within a checkpoint - by Vince - 02.09.2015, 09:42
Re: Getting random cordinates within a checkpoint - by HBG - 02.09.2015, 10:16

Forum Jump:


Users browsing this thread: 1 Guest(s)