in my map, i have a zergling producing unit. I am trying to achieve and effect that when i pass a certain point, a trigger begins producing units infront of that producer with a timed delay (eg: a new unit is produced every 2s), i tried using timers but i have no idea how they worked and when i entered the region a million zerglings came and ate my sorry ass.
I have set up everything, starting the production process, and ending it when the producer is destroyed using booleans, however i cant seem to get the production right.
I have thought up a few gay ways which wud need like 4- over 9000 triggers but fck that
Currently i have given up and am thinking of making a unit in the corner of my map move forwards and backwards passing a region every 5s which will produce the units. Fck that. So gay. If i do that for every producer im gonna make im not gona have any space for the actual map
I quess I would do it something like this (im not a timer user :/)...
Unit enter region -> Turn on periodic trigger
Periodic trigger:
Every 5seconds
- spawn unit to point (you want).
When using the periodic triggers, you need to put intially on option off from the trigger, so it doesnt run before you activate it.
edit* If you want to have more specific time, you could set periodic trigger run every 0,05sec, or so and calculate the time using variables. Like: every 0,05sec -> set time = time + 0,05sec. If time is 2sec -> spawn unit, set time = 0.
in my map, i have a zergling producing unit. I am trying to achieve and effect that when i pass a certain point, a trigger begins producing units infront of that producer with a timed delay (eg: a new unit is produced every 2s), i tried using timers but i have no idea how they worked and when i entered the region a million zerglings came and ate my sorry ass. I have set up everything, starting the production process, and ending it when the producer is destroyed using booleans, however i cant seem to get the production right. I have thought up a few gay ways which wud need like 4- over 9000 triggers but fck that
Currently i have given up and am thinking of making a unit in the corner of my map move forwards and backwards passing a region every 5s which will produce the units. Fck that. So gay. If i do that for every producer im gonna make im not gona have any space for the actual map
Help pls :) Soz for my rambles
Lets see...
I quess I would do it something like this (im not a timer user :/)...
Unit enter region -> Turn on periodic trigger
Periodic trigger: Every 5seconds - spawn unit to point (you want).
When using the periodic triggers, you need to put intially on option off from the trigger, so it doesnt run before you activate it.
@zenx1: Go
thanks man, i didnt know that periodic triggers cud be used so simply :P
much love <3