HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Wouldn't this NOT leak?

04-19-2006, 07:15 AM#1
Moss
Trigger:
Actions
Collapse Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
Custom script: call DestroyGroup( GetLastCreatedGroup() )

Couldn't this sort of thing be done instead of first creating/setting a unitgroup variable to "catch" the units and then destroying the group refered to by the variable?
04-19-2006, 07:28 AM#2
PipeDream
Sorry, GetUnitsInRectAll does not do the set up necessary for GetLastCreatedGroup().

Guess you could import your own Blizzard.j though.
04-19-2006, 08:15 AM#3
Moss
Ah, I see. Thank-you.
04-19-2006, 09:41 AM#4
Earth-Fury
However, it would work with any BJ function that returns a unit group =)