• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

does this still leak?

Status
Not open for further replies.
Level 3
Joined
Aug 2, 2009
Messages
22
Hello guys
I have a question,
you already seen it :) does this still leak?

  • Mob Respawn
    • Events
      • Time - MobTimer expires
    • Conditions
    • Actions
      • Unit - Create Footman Footman for Player 12 (Brown) at (Center of Alli Spawn1 <gen>) facing 0.00 degrees
      • Set Move1 = (Last created unit group)
      • Set Point1 = (Point(-6600.00, -7100.00))
      • Unit Group - Order Move1 to Attack-Move To Point1
      • Custom script: call RemoveLocation(udg_Point1)
      • Custom script: call DestroyGroup(udg_Move1)
btw another not so important and oftopic question: what the hide code?

thx in advance
 
Level 13
Joined
Jun 22, 2004
Messages
783
Hello guys
I have a question,
you already seen it :) does this still leak?

  • Mob Respawn
    • Events
      • Time - MobTimer expires
    • Conditions
    • Actions
      • Unit - Create Footman Footman for Player 12 (Brown) at (Center of Alli Spawn1 <gen>) facing 0.00 degrees
      • Set Move1 = (Last created unit group)
      • Set Point1 = (Point(-6600.00, -7100.00))
      • Unit Group - Order Move1 to Attack-Move To Point1
      • Custom script: call RemoveLocation(udg_Point1)
      • Custom script: call DestroyGroup(udg_Move1)
btw another not so important and oftopic question: what the hide code?

thx in advance

Yes "(Center of Alli Spawn1 <gen>)" will does leak in this case.
 
Level 20
Joined
Oct 21, 2006
Messages
3,231
I think there are no leaks left. The region on the create units part "leaks", but because you create it at the start and then use the same point every time it shouldnt create lags or so on, because leaks come when you create points and dont destroy them, but if you just create one point it should cause problems.
 
Level 13
Joined
Jun 22, 2004
Messages
783
Multigod, never be confused with how people name their variables, just look at the type of the variable, by the expression behind the variable.

In this case that unit group does not leak, the thing that leaked, was described in the first post.
 
Status
Not open for further replies.
Top