• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] more question about leaks

Status
Not open for further replies.
Level 6
Joined
Jul 21, 2011
Messages
139
do we really need to put angles (math - angle between points) into variables? do they leak?

if yes then do we remove the leak just like we would with a normal point location? example: call RemoveLocation(udg_shithere)

and last, please look at the picture and tell me if everything is ok

thx
 

Attachments

  • leaks.JPG
    leaks.JPG
    31.4 KB · Views: 73
Level 6
Joined
Jul 21, 2011
Messages
139
this forum trigger tags? idk how to use them

anyways, what about "group unit - pick every unit in expa2 and do (actions)"

that wont leak since im using a group variable right?

  • Grupo de unidad - Pick every unit in expa2 and do (Actions)
    • Bucle: Acciones
      • Set posi03 = (Position of (Picked unit))
      • Set pluto2 = (posi03 offset by 70.00 towards (Angle from CastPoint9003 to posi03) degrees)
      • Unidad - Move (Picked unit) instantly to pluto2
      • Destructible - Pick every destructible within 200.00 of posi03 and do (Destructible - Kill (Picked destructible))
      • Custom script: call RemoveLocation(udg_pluto2)
      • Custom script: call RemoveLocation(udg_posi03)
cool, thx
 
Level 6
Joined
Jul 21, 2011
Messages
139
i destroy my unit group variable in the main trigger after everything in the spell is done (the pic i posted is a loop)

  • Custom script: call DestroyGroup(udg_shithere)
but now i ask if since i use the group more than once (take a look at the pic) and only destroy it once at the end, if that is ok or leaks

http://www.hiveworkshop.com/forums/triggers-scripts-269/things-leak-35124/

(in that guide the group is used once and inmediatly destroyed)
  • Set GroupVar = Pick every unit in (Playable Map Area)
  • Unit Group - Pick every unit in GroupVar and do (Unit - Hide (Picked unit))
  • Custom script: call DestroyGroup(udg_GroupVar)
im being rlly paranoid but i need my map leakless, thx
 
Level 6
Joined
Jul 21, 2011
Messages
139
For every allocation (creation of a group, NOT usage of a group) comes a deallocation (destroy).

thats good news for me

i just read somewhere that destructibles can leak too, true or not?

  • Destructible - Pick every destructible within 200.00 of posi03 and do (Destructible - Kill (Picked destructible))
dont tell me i need a variable for them too...
 
Status
Not open for further replies.
Top