ID:164586
 
if i have a tree, made up of 6 turfs, how do i make the program scatter the tree around the map, just not on top of buildings etc :P
If BYOND's rand() proc is random enough for you (it is for most people, but implement the Mersenne twister algorithm if you need to generate a huge quantity of random numbers, such as to populate a 1000 x 1000 x 1000 map) then all you need to do is pick a location like locate(rand(1,world.maxx),rand(1,world.maxy),rand(world.maxz)) and place the 6-turf tree all around that location.
In response to PirateHead
looks like i have to do it the old way. make a screenshot of the tree and place it on the map XD
In response to Gogeta126
Gogeta126 wrote:
looks like i have to do it the old way. make a screenshot of the tree and place it on the map XD

OR you could use the select feature in the byond map and then copy and past the huge tree over and over again on your map :)?