Unit Spawn Leak

Status
Not open for further replies.
Level 4
Joined
Jul 24, 2009
Messages
59
Alright, so im making an AoS-type spawn and I'm wondering if this trigger will still leak
  • Human Spawns
    • Events
      • Time - Every 20.00 seconds of game time
    • Conditions
    • Actions
      • Unit - Create 2 Footman for Player 3 (Teal) at H_SPAWN facing 270.00 degrees
      • Unit - Create 2 Footman for Player 2 (Blue) at H_SPAWN facing 270.00 degrees
      • Unit - Create 1 Knight for Player 3 (Teal) at H_SPAWN facing 270.00 degrees
      • Unit - Create 1 Knight for Player 2 (Blue) at H_SPAWN facing 270.00 degrees
      • Unit - Create 1 Tank for Player 3 (Teal) at H_SPAWN facing 270.00 degrees
      • Unit - Create 1 Tank for Player 2 (Blue) at H_SPAWN facing 270.00 degrees
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Unit Group - Order (Units in Human Spawn <gen>) to Attack-Move To Center)
I get a lagg every time they are spawned, is that just because theres a ton of units being made?

If not, could you send me what the trigger should look like?
 
Alright, so im making an AoS-type spawn and I'm wondering if this trigger will still leak
  • Human Spawns
    • Events
      • Time - Every 20.00 seconds of game time
    • Conditions
    • Actions
      • Unit - Create 2 Footman for Player 3 (Teal) at H_SPAWN facing 270.00 degrees
      • Unit - Create 2 Footman for Player 2 (Blue) at H_SPAWN facing 270.00 degrees
      • Unit - Create 1 Knight for Player 3 (Teal) at H_SPAWN facing 270.00 degrees
      • Unit - Create 1 Knight for Player 2 (Blue) at H_SPAWN facing 270.00 degrees
      • Unit - Create 1 Tank for Player 3 (Teal) at H_SPAWN facing 270.00 degrees
      • Unit - Create 1 Tank for Player 2 (Blue) at H_SPAWN facing 270.00 degrees
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Unit Group - Order (Units in Human Spawn <gen>) to Attack-Move To Center)
I get a lagg every time they are spawned, is that just because theres a ton of units being made?

If not, could you send me what the trigger should look like?

The last line of your trigger leaks.Try creating a group variable puting there all your spawned units,and then a variable for the region you want them to attack.Then use custom script to destroy the leaks.
 
Status
Not open for further replies.
Back
Top