HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Lag issues with Unit Groups

01-24-2004, 08:51 PM#1
ZZiNo
Well in my new map, theres lag half way in cause of all the unit groups being created. I was wondering, how do you get rid of this??

I know theres that JASS function that allows you to destroy "last created Unit Group", does anyone know it?
01-24-2004, 09:04 PM#2
35263526
But this before you pick each unit group:
Code:
Custom Script: set bj_wantDestroyGroup = true
01-24-2004, 09:06 PM#3
ZZiNo
so this will destroy the group as soon as the function after it carries out its duties?
01-24-2004, 09:08 PM#4
35263526
Basically it destroys the temp group at the end of the function.
01-24-2004, 09:25 PM#5
Xinlitik
Dont put that in front of any unit groups that are a unit group global variable..

IE

Code:
 Pick every unit in PlayerOneKnights, and do...

PlayerOneKnights is a unit group gloval variable.