how do i make a spawning pool spawn x amount of zerglings every x amount of seconds, i dont care if you do it in triggers or data editor, or even both, whatever is easier for you. I almost got it working, but i cant quite get it. Any help would be appreciated.
Trigger is easy:
Event - periodic event (time between zergling spawns)
Action - Pick each unit in (units in region matching condition (spawning pool for any player blah blah))
-Action - Create 1 (or however many) zerglings for player (owner of picked unit) at (whatever position... perhaps position of building with offset).
Alternatively, you could give the train zergling ability to the building within the data editor, and have it use that ability every so often in a trigger.
I am sorry to say it didnt work for some reason heres what i did:
Untitled Trigger 008
Events
Timer - Every 5.0 seconds of Game Time
Local Variables
Untitled Variable 001 = (Empty unit group) <Unit Group>
Conditions
Actions
Unit Group - Pick each unit in (Spawning Pool units in (Entire map) owned by player 8 matching Required: Structure; Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Unit Group - Add (Triggering unit) to Untitled Variable 001
Unit - Create 4 Zergling for player 8 at (Position of (Random Living unit from Untitled Variable 001)) using default facing (No Options)
I made spawning pools randomly spawn all over the map, so the trigger has to randomly choose between them and spawn some units at the position of the chosen spawning pool.... i thought it would work but they spawn in the middle of nowhere O_o
Edit: Found the problem! i used triggering unit instead of picked unit! DOI!
i think this is simple enough
how do i make a spawning pool spawn x amount of zerglings every x amount of seconds, i dont care if you do it in triggers or data editor, or even both, whatever is easier for you. I almost got it working, but i cant quite get it. Any help would be appreciated.
Trigger is easy: Event - periodic event (time between zergling spawns) Action - Pick each unit in (units in region matching condition (spawning pool for any player blah blah)) -Action - Create 1 (or however many) zerglings for player (owner of picked unit) at (whatever position... perhaps position of building with offset).
Alternatively, you could give the train zergling ability to the building within the data editor, and have it use that ability every so often in a trigger.
Does that help?
@SquarelyCircle: Go
I am sorry to say it didnt work for some reason heres what i did:
Untitled Trigger 008 Events Timer - Every 5.0 seconds of Game Time Local Variables Untitled Variable 001 = (Empty unit group) <Unit Group> Conditions Actions Unit Group - Pick each unit in (Spawning Pool units in (Entire map) owned by player 8 matching Required: Structure; Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions) Actions Unit Group - Add (Triggering unit) to Untitled Variable 001 Unit - Create 4 Zergling for player 8 at (Position of (Random Living unit from Untitled Variable 001)) using default facing (No Options)
I made spawning pools randomly spawn all over the map, so the trigger has to randomly choose between them and spawn some units at the position of the chosen spawning pool.... i thought it would work but they spawn in the middle of nowhere O_o
Edit: Found the problem! i used triggering unit instead of picked unit! DOI!