02.09.2015, 00:44
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.
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.