• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

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?
 
Level 15
Joined
Aug 11, 2009
Messages
1,606
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.
Top