Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
well i am getting leaks from units being spwned and i read how to fix it but it didnt work so i think i dont get it and stuffed it up some were pleaze help me
Your leaking locations, you need to store the locations in a point variable and then remove them. I might be able to help you more if you acually converted your trigger to text and used our handy GUI trigger tags but since you did it the horribly difficult and innefficent way. . .
Under one of the menues it should have copy trigger as text, use that instead of screenshots.
For each (Integer A) from 1 to 1, do (Unit - Create 5 Ghoul for Player 11 (Dark Green) at (Center of Holding 2 <gen>) facing (Random point in Holding 2 <gen>))
For each (Integer A) from 1 to 1, do (Unit - Create 4 Crypt Fiend for Player 11 (Dark Green) at (Center of Holding 2 <gen>) facing (Random point in Holding 2 <gen>))
For each (Integer A) from 1 to 1, do (Unit - Create 2 Necromancer for Player 11 (Dark Green) at (Center of Holding 2 <gen>) facing (Random point in Holding 2 <gen>))
For each (Integer A) from 1 to 1, do (Unit - Create 1 Champion for Player 11 (Dark Green) at (Center of Holding 2 <gen>) facing (Random point in Holding 2 <gen>))
Set groupundead = (Units in Camp 2 <gen>)
Unit Group - Pick every unit in (Units in Camp 2 <gen>) and do (Unit - Hide (Picked unit))
Custom script: call DestroyGroup(udg_groupundead)
Events
Time - Every 35.00 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to 1, do (Unit - Create 5 Footman for Player 12 (Brown) at (Center of Holding <gen>) facing (Random point in Holding <gen>))
For each (Integer A) from 1 to 1, do (Unit - Create 4 Rifleman for Player 12 (Brown) at (Center of Holding <gen>) facing (Random point in Holding <gen>))
For each (Integer A) from 1 to 1, do (Unit - Create 2 Priest for Player 12 (Brown) at (Center of Holding <gen>) facing (Random point in Holding <gen>))
For each (Integer A) from 1 to 1, do (Unit - Create 1 Capatin Train capatin for Player 12 (Brown) at (Center of Holding <gen>) facing (Random point in Holding <gen>))
Set Grouphuman = (Units in camp 1 <gen>)
Unit Group - Pick every unit in (Units in camp 1 <gen>) and do (Unit - Hide (Picked unit))
Firstly remove thoes actions that are in the loops since it is pointless doing them in the loops.
Secondly store all your locations (points) in variables and only use them from the variables and destroy them before asigning a new location (point) to the variable.
Finally do the same as you did for the points for the groups.
I recommend reading some of our leak tutorials, they can really be helpfull.
Secondly store all your locations (points) in variables and only use them from the variables and destroy them before asigning a new location (point) to the variable.
QUOTE]
A) make another Point variable and do the same as the above
B) use Facing Angle, and use (Random Real Between 0 and 360) or (Random Angle) for the random angle. (wouldn't be facing random point in region though, just around them)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.