Baltazhar
Active Member
- Reaction score
- 55
I know 'Leaks' are probably the most used and abused topic, and I kinda feel bad just for asking about them. However, I might add, I've searched a lot of threads and several tutorials on Leaks, so it's not completely lame questions.
Since I don't know Jass, and trigger using the GUI, I have a small question about the Custom Script that I use to clean up my variables.
My question to this part is: Is there a space between DestroyGroup/RemoveLocation and (udg_Temp_...)? Looking at several tutorials have just confused me, since some say with a space, and some say without a space >.<
I know that destroying the special effect will clean up the leak, but if I do it right after the effect is created (as the code shows), will the effect be shown or just removed before it can be displayed?
Hope these aren't considered pointless question, and i'd be grateful for any help u guys/gals can give me
- Balt
Since I don't know Jass, and trigger using the GUI, I have a small question about the Custom Script that I use to clean up my variables.
Code:
Set Temp_Group = (Units owned by Player 1 (Red))
Custom script: call DestroyGroup (udg_Temp_Group)
Code:
Set Temp_Point = (Position of (Triggering unit))
Custom script: call RemoveLocation (udg_Temp_Point)
Code:
Special Effect - Create a special effect at Temp_Point using Objects\Spawnmodels\Orc\OrcSmallDeathExplode\OrcSmallDeathExplode.mdl
Special Effect - Destroy (Last created special effect)
Hope these aren't considered pointless question, and i'd be grateful for any help u guys/gals can give me
- Balt