Code:
Set Temp_Group = (Units in (Playable map area))
Unit Group - Pick every unit in Temp_Group and do (Actions)
Loop - Actions
Unit - Kill (Picked unit)
Custom script: call DestroyGroup (udg_Temp_Group)
I've always been skeptical of this last line (destroying the variable), although you guys are experienced i guess so it must be right.
But...
Why wouldn't the variable clean itself up on being overwritten. I mean, I would understand if it was a different variable being used each time, but aren't we using the same block of memory each time here?
Can someone explain on a low-level perspective of why this is? It's not in the tutorial because I suppose you don't really need to know, but it's really bugging me.