- Joined
- Dec 27, 2010
- Messages
- 15
Hey I've got a lil problem here.
I've just started learning about memory leaks and how to fix them, so I'm going through my map ironing them out. I have this trigger here, set to run every 15 seconds:
So I tried to remove the memory leaks on the player group and unit groups. I added the variables tempPlayerGroup and tempGroup, and tried to erase the leaks. Here's what I finished with:
Im stuck, if anyone could help me out that'd be great.
I've just started learning about memory leaks and how to fix them, so I'm going through my map ironing them out. I have this trigger here, set to run every 15 seconds:
-
Player Group - Pick every player in tempPlayerGroup and do (Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units owned by (Picked player) of type Slayer) and do (Actions)
-
Loop - Actions
-
Hero - Modify Strength of (Picked unit): Add 4
-
Hero - Modify Agility of (Picked unit): Add 6
-
Hero - Modify Intelligence of (Picked unit): Add 4
-
-
-
-
So I tried to remove the memory leaks on the player group and unit groups. I added the variables tempPlayerGroup and tempGroup, and tried to erase the leaks. Here's what I finished with:
-
Set tempPlayerGroup = WarSlayersGroup
-
Player Group - Pick every player in tempPlayerGroup and do (Actions)
-
Loop - Actions
-
Set tempGroup = (Units owned by (Picked player) of type Slayer)
-
Unit Group - Pick every unit in tempGroup and do (Actions)
-
Loop - Actions
-
Hero - Modify Strength of (Picked unit): Add 4
-
Hero - Modify Agility of (Picked unit): Add 4
-
Hero - Modify Intelligence of (Picked unit): Add 4
-
-
-
-
-
Custom script: call DestroyForce(udg_tempPlayerGroup)
-
Custom script: call DestroyGroup(udg_tempGroup)
-
Player Group - Pick every player in tempPlayerGroup and do (Actions)
-
Loop - Actions
-
Set tempGroup = (Units owned by (Picked player) of type Slayer)
-
-
Im stuck, if anyone could help me out that'd be great.
