Heres the deal...
I want to make something so when the world is started up a certain object will get randomly placed throughout the map.
But I don't know how to do this.
PLease give me advice on how to do so. Or point me to a demo of some kind.
ID:169369
Jun 28 2005, 2:33 pm
|
|
In response to DeathAwaitsU
|
|
Or, alternatively:
#define CheeseProb 5 |
In response to Jp
|
|
Crzylme wrote:
Heres the deal... |
locate() needs an x, y and z variable. We randomly generate x and y by using rand(). 1 to world.maxx and 1 to world.maxy will cover the entire z-axis.