- Joined
- Sep 11, 2013
- Messages
- 467
Greetings!
I want to create in a specific region 2 gold mines and 2 trees. All 4 must be placed in random positions each time when the game start.
Now will be hard to explain..
In my map, I created another building for Gold mine just for custom pathing in order to achive only 1 entrence in gold mine. So the first problem is how to create those 2 gold mines in random positions in region, but with that second building around them for custom pathing.
The second problem.. I don't want bugs.. so if the first random point in region for gold mine 1 is very close to the seconds random point in region for gold mine 2, those 2 mines will be created one on top of another and i don't want that.
The last problem is the same, but with trees. I don't want to see trees on top of mines or one into another stuck.. or mines in top of trees etc..
Is there a way to solve those problems?
The help will be appreciated!
I want to create in a specific region 2 gold mines and 2 trees. All 4 must be placed in random positions each time when the game start.
Now will be hard to explain..
In my map, I created another building for Gold mine just for custom pathing in order to achive only 1 entrence in gold mine. So the first problem is how to create those 2 gold mines in random positions in region, but with that second building around them for custom pathing.
The last problem is the same, but with trees. I don't want to see trees on top of mines or one into another stuck.. or mines in top of trees etc..
Is there a way to solve those problems?
The help will be appreciated!