Staredit Network > Forums > SC2 Assistance > Topic: Spawn units when another enters a region?
Spawn units when another enters a region?
Feb 18 2013, 8:07 pm
By: sharf  

Feb 19 2013, 2:41 pm sharf Post #21



Thanks a ton devlin, I'm just trying a bunch of different stuff right now to try and get the hang of triggers more. I know I'll need some more help soon, so I'll post then :P.

I've solved two of my problems using some creative (I think) use of unit groups. I have 1 unit group for enemies that are spawned on the pads, and 1 unit group for all the players' units. Then using the closest unit to center condition you did, I check to see if there are no units from the enemy group, and that there is at least 1 from the players group, and then spawn the enemies (which add the units to the group, instead of setting the variable). Multiple pads for all players to use with all their units and only 2 unit groups.

Post has been edited 1 time(s), last time on Feb 19 2013, 2:51 pm by sharf.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[11:23 pm]
NudeRaider -- dumbducky
dumbducky shouted: I found a sneaky way to view some of my coworkers SAT scores and it is shocking
:ban:
[11:22 pm]
NudeRaider -- dumbducky
dumbducky shouted: I miss forums. Twitter is way more engaging but unless you have a following, nobody talks to you. Reddit is just filled with the stupidest people
well, most active members here are the bots, so not sure if this is an improvement :P
[06:05 pm]
dumbducky -- I found a sneaky way to view some of my coworkers SAT scores and it is shocking
[06:03 pm]
dumbducky -- FaRTy1billion
FaRTy1billion shouted: o, i keep meaning to add things to it but instead don't
Farty does your website work anymore
[06:02 pm]
dumbducky -- I miss forums. Twitter is way more engaging but unless you have a following, nobody talks to you. Reddit is just filled with the stupidest people
[02:32 pm]
Zoan -- :wob:
[02:54 am]
Ultraviolet -- :wob:
[2024-7-25. : 2:39 am]
O)FaRTy1billion[MM] -- o, i keep meaning to add things to it but instead don't
[2024-7-24. : 11:55 pm]
Roy -- Make that three changes to the wiki in the last month, all three being just edits to user pages.
[2024-7-23. : 2:47 pm]
dumbducky -- Two changes to the wiki in the last month, both are just edits to user pages
Please log in to shout.


Members Online: Roy, Moose