Is there a way to have units randomly spawn everywhere on entire map ,but without having them spawning on high cliffs, and keep them spawned on defualt terrain level???
but, the units are still spawning on high and 2nd high cliffs. i just want units randomly spawn everywhere on defualt ground level, without spawning on any cliffs.
i always create a recursive custom function for this purpose:
Param: Point, Return Point
If (Param Point cliff level > 0) then return myFunction(random pooint in map) else return param point
just use this function as point where to spawn the unit (random point on map as param)
Is there a way to have units randomly spawn everywhere on entire map ,but without having them spawning on high cliffs, and keep them spawned on defualt terrain level???
Heres a great example Im talking about...
http:www.sc2mapster.com/forums/development/triggers/64748-creating-units-error/?post=1
hmmm... i think i almost got it...
but, the units are still spawning on high and 2nd high cliffs. i just want units randomly spawn everywhere on defualt ground level, without spawning on any cliffs.
@AgentOO7: Go
http://www.sc2mapster.com/forums/development/triggers/64748-creating-units-error/?post=7
i always create a recursive custom function for this purpose:
Param: Point, Return Point
If (Param Point cliff level > 0) then return myFunction(random pooint in map) else return param point
just use this function as point where to spawn the unit (random point on map as param)
Thank you =)