• 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.

Help me remove leaks

Status
Not open for further replies.
Level 8
Joined
Jul 29, 2010
Messages
319
  • Mustafar
    • Events
      • Time - Every 0.05 seconds of game time
    • Conditions
    • Actions
      • Unit - Move Mustafar 0005 <gen> instantly to ((Position of Star 0007 <gen>) offset by (Distance between (Position of Star 0007 <gen>) and (Position of Mustafar 0005 <gen>)) towards ((Angle from (Position of Star 0007 <gen>) to (Position of Mustafar 0005 <gen>)) + 0.01) degrees)
i know that this leaks like hell i just don't know how to do it any other way that keeps the trigger this small, thanks in advance :D
 
Level 11
Joined
Jan 2, 2016
Messages
472
  • Mustafar
    • Events
      • Time - Every 0.05 seconds of game time
    • Conditions
    • Actions
      • Set P1 = Position of Mustafat 0005 <gen>
      • Set P2 = Position of Star 0007 <gen>
      • Unit - Move Mustafar 005 <gen> instantly to ((P2 offset by (Distance between (P2) and (P1)) towards ((Angle from (P2) to (P1)) + 0.01) degrees)
      • Custom scripts - call RemoveLocation(udg_P1)
      • Custom scripts - call RemoveLocation(udg_P2)
NOTE: You should check out this thread Complete list of things that leak so you can learn to remove them in the future :)
 
Last edited:
Level 8
Joined
Jul 29, 2010
Messages
319
  • Mustafar
    • Events
      • Time - Every 0.05 seconds of game time
    • Conditions
    • Actions
      • Set P1 = Position of Mustafat 0005 <gen>
      • Set P2 = Position of Star 0007 <gen>
      • Unit - Move Mustafar 005 <gen> instantly to ((P2 offset by (Distance between (P2) and (P1)) towards ((Angle from (P2) to (P1)) + 0.01) degrees)
      • Custom scripts - call RemoveLocation(udg_P1)
      • Custom scripts - call RemoveLocation(udg_P2)
NOTE: You should check out this thread Complete list of things that leak so you can learn to remove them in the future :)
thanks man :)
 
Level 11
Joined
Jan 2, 2016
Messages
472
  • Mustafar
    • Events
      • Time - Every 0.05 seconds of game time
    • Conditions
    • Actions
      • Set P1 = Position of Mustafat 0005 <gen>
      • Set P2 = Position of Star 0007 <gen>
      • Set P3 = P2 offset by (Distance between (P2) and (P1))
      • Unit - Move Mustafar 005 <gen> instantly to ((P3 towards ((Angle from (P1) to (P2)) + 0.01) degrees)
      • Custom scripts - call RemoveLocation(udg_P1)
      • Custom scripts - call RemoveLocation(udg_P2)
      • Custom scripts - call RemoveLocation(udg_P3)
 
Last edited:

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,285
Abovegame I do not think you copied the polar projection function into the assignment to P3 correctly. I do not think you are showing valid GUI...
  • Mustafar
    • Events
      • Time - Every 0.05 seconds of game time
    • Conditions
    • Actions
      • Set P1 = Position of Mustafat 0005 <gen>
      • Set P2 = Position of Star 0007 <gen>
      • Set P3 = (P2 offset by (Distance between (P2) and (P1)) towards ((Angle from (P2) to (P1)) + 0.01) degrees)
      • Unit - Move Mustafar 005 <gen> instantly to (P3)
      • Custom scripts - call RemoveLocation(udg_P1)
      • Custom scripts - call RemoveLocation(udg_P2)
      • Custom scripts - call RemoveLocation(udg_P3)
 
Status
Not open for further replies.
Top