• Check out the results of the Techtree Contest #19!
  • 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

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