I had some issues when using variables, specifically, Unit Group. I tried to use this as this prevent memory leak but it does not go out as I expected. When using the "random point in region", the creeps created stays in one place, I want them to be scattered randomly and not stacked in a random point in the region
Instead of spreading around the region like it was without variable, they are stacked in one place instead, moreover, they tend to spawn again on the same area or in another area but are still stacked (timer).
Please help :< (I'm still a beginner and I only realized memory leak today)
-
Spawn Level 1
-
Events
-
Time - BalanceTimer1 expires
-
-
Conditions
-
Actions
-
Set PointLeak2 = (Random point in Spawn 1 <gen>)
-
Unit - Create 1 Spider for Neutral Hostile at PointLeak2 facing (Center of (Entire map))
-
Unit - Create 1 Murloc Tiderunner for Neutral Hostile at PointLeak2 facing (Random point in (Playable map area))
-
Unit - Create 1 Satyr for Neutral Hostile at PointLeak2 facing (Random point in (Playable map area))
-
Unit - Create 1 Satyr Trickster for Neutral Hostile at PointLeak2 facing (Random point in (Playable map area))
-
Unit - Create 1 Harpy Scout for Neutral Hostile at PointLeak2 facing (Random point in (Playable map area))
-
Unit - Create 1 Quillboar for Neutral Hostile at PointLeak2 facing (Random point in (Playable map area))
-
Unit - Create 1 Razormane Scout for Neutral Hostile at PointLeak2 facing (Random point in (Playable map area))
-
Unit - Create 1 Draenei Guardian for Neutral Hostile at PointLeak2 facing (Random point in (Playable map area))
-
Unit - Create 1 Lesser Voidwalker for Neutral Hostile at PointLeak2 facing (Random point in (Playable map area))
-
Unit - Create 1 Bandit for Neutral Hostile at PointLeak2 facing (Random point in (Playable map area))
-
Unit - Create 1 Fallen Priest for Neutral Hostile at PointLeak2 facing (Random point in (Playable map area))
-
Custom script: call RemoveLocation(udg_PointLeak2)
-
-
Instead of spreading around the region like it was without variable, they are stacked in one place instead, moreover, they tend to spawn again on the same area or in another area but are still stacked (timer).
-
Spawn Level 2
-
Events
-
Time - BalanceTimer2 expires
-
-
Conditions
-
Actions
-
For each (Integer A) from 1 to 100, do (Actions)
-
Loop - Actions
-
Set PointLeak2 = (Random point in 3 Weaker Creep Spawn <gen>)
-
Unit - Create 1 Dark Troll for Neutral Hostile at PointLeak2 facing (Random point in (Playable map area))
-
Unit - Create 1 Lightning Lizard for Neutral Hostile at PointLeak2 facing (Random point in (Playable map area))
-
Unit - Create 1 Dark Troll Shadow Priest for Neutral Hostile at PointLeak2 facing (Random point in (Playable map area))
-
Unit - Create 1 Murloc Huntsman for Neutral Hostile at PointLeak2 facing (Random point in (Playable map area))
-
Unit - Create 1 Brigand for Neutral Hostile at PointLeak2 facing (Random point in (Playable map area))
-
Unit - Create 1 Mud Golem for Neutral Hostile at PointLeak2 facing (Random point in (Playable map area))
-
Unit - Create 1 Draenei Disciple for Neutral Hostile at PointLeak2 facing (Random point in (Playable map area))
-
Custom script: call RemoveLocation(udg_PointLeak2)
-
-
-
-
Please help :< (I'm still a beginner and I only realized memory leak today)