In my ongoing SC2 Map experience, I've decided I want to make a room (or 2 or 3) on my map....I want the room to be a random size and I want it to be placed randomly on my map over and over. I have most of this logic already written but before I continue i have the following questions....
Questions:
1) Do I have to use Destructable Walls? Are there any other suggestions? The walls obviously need to not allow users to walk through them like doodads. I know there's a setting for collision in the data editor somewhere....but would prefer not using it.
2) Do i need to create the wall pieces during map initialization or can i create/destroy the wall pieces every time? For this one I'm worried i might end up creating too many wall pieces and since they're "units" they might lag the map.
yes destructible wall are must. no other way really to get this level of precision with collision. Use structures and change their footprint. Just like terran base, flies up , lands and you can't go thru it.
Walls won't lag the map but there's a unit limit. (don't remember how much. 8k?)
Thanks for the feedback. Follow up that's related:
From what i can tell you can't create a region after map initialization. Can you move/resize regions via triggers? I'm looking to say take a 12x12 region @ point x, y and then magic happens and it's now a 12x16 region at point a,b.
The scenario is.....units are only allowed to spawn in a certain room...if that room moves, the spawning region needs to move too.
In my ongoing SC2 Map experience, I've decided I want to make a room (or 2 or 3) on my map....I want the room to be a random size and I want it to be placed randomly on my map over and over. I have most of this logic already written but before I continue i have the following questions....
Questions:
1) Do I have to use Destructable Walls? Are there any other suggestions? The walls obviously need to not allow users to walk through them like doodads. I know there's a setting for collision in the data editor somewhere....but would prefer not using it. 2) Do i need to create the wall pieces during map initialization or can i create/destroy the wall pieces every time? For this one I'm worried i might end up creating too many wall pieces and since they're "units" they might lag the map.
@Nerfpl:
Thanks for the feedback. Follow up that's related:
From what i can tell you can't create a region after map initialization. Can you move/resize regions via triggers? I'm looking to say take a 12x12 region @ point x, y and then magic happens and it's now a 12x16 region at point a,b.
The scenario is.....units are only allowed to spawn in a certain room...if that room moves, the spawning region needs to move too.
you can create regions at runtime.
similarly to point p = point from XY(x,y)
@Nerfpl:
so i would use the set variable action to resize the region?
no, you create new one and save it to global variable so your other trigger can read from it