QUOTE(deaden @ Nov 20 2006, 02:04 PM)
Ok, so I have an enemy spawn point, you bring your hero to this area, It SHOULD spawn a unit roughly 2-3 squares in some direction (any doesn't matter) away from the hero. Is there an easy way to do this? I realize I could easily do this by placing burrowed units in the spawn area and just select a burrowed unit that has no hero there (the problem is I'm creating an effect before the unit spawns but the effect is in a 1x1 square so if something else is there it gets moved and the effect unit doesnt get killed causing all these spawns of invincible units heh...). However I was hoping there was a way to do it by centering a location or something more dynamic where I wouldn't have to have pre-placed spawns.
[right][snapback]592199[/snapback][/right]
SET-UP:
1 4x4 Location called 'THIS'
1 1x1 location called: 'SPAWN'
1 Location covering spawn area called: 'ZONE'
Burrowed zerglings covering spawn area 1 per square belonging to p8
Conditions: 'PLAYER' brings 'AT LEAST 1' 'HERO' to 'ZONE'
Actions:
Center location 'THIS' one 'HERO'
Give all 'ZERGLINGS' owned by 'P7' at 'ZONE' to 'P8'
Give all 'ZERGLINGS' owned by 'P8' at 'THIS' to 'P7'
Center location 'SPAWN' on 'ZERGLINGS' owned by 'P7' at 'ZONE'
Preserve Trigger
It should Spawn at the one of the corners (i forget which) but it'll be about 3-4 squares away.
And the spawn trigger can be seperate. Happy mapping
.
OR
SET UP:
ONE location labeled : 'EASIER' 6x6
ONE location labeled : 'SPAWN' 1x1
CONDITIONS: SAME
ACTIONS:
Center location labeled 'EASIER' on 'HERO' at 'WHEREVER'
Create '9' 'MUTALISK' at 'EASIER' for 'PLAYER 1'
Center location 'SPAWN' on 'MUTALISK' owned by "PLAYER 1' at 'EASIER'
Remove all 'MUTALISK' for 'PLAYER 1' at 'EASIER'
Preserve Trigger
Second one is easier, but it'll slow your hero down.