On the top half of my very large map I'm trying to generate random creeps for some of my minions to kill. I want to generate them randomly throughout the map. I don't really want them to clutter but I still want there spawns to be consistent throughout the game. Anyone know of a good way to do this? Keep in mind random is one of the main things I'm looking for. Maybe also put a max number of total spawns throughout the top half of the map? Not sure. Thanks.
If you want a better spread you can divide your spawning on different sub-regions through your entire map.
If you have a 256x256 map for example divide it in a grid sized 32x32 or 64x64 and spawn few units in each, the spread will be better then spawning all units randomly on the entire map
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
On the top half of my very large map I'm trying to generate random creeps for some of my minions to kill. I want to generate them randomly throughout the map. I don't really want them to clutter but I still want there spawns to be consistent throughout the game. Anyone know of a good way to do this? Keep in mind random is one of the main things I'm looking for. Maybe also put a max number of total spawns throughout the top half of the map? Not sure. Thanks.
First you can use a Pick each Integer action from 1 to "how many creeps you want".
Then use Unit - Create 1 "Unit" at "Point" and Point you set to Random point in region, with region being entire map.
You can copy this and controll how many units spawn at top half.
If you want a better spread you can divide your spawning on different sub-regions through your entire map.
If you have a 256x256 map for example divide it in a grid sized 32x32 or 64x64 and spawn few units in each, the spread will be better then spawning all units randomly on the entire map