Hiya!
I just started making warcraft III maps a month ago.
Right now I'm trying to learn about memory leaks and how to get rid of them.
Here's some code that I'm trying to remove leaks from, but I'm not entirely sure how to do it.
Thanks in Advanced
I just started making warcraft III maps a month ago.
Right now I'm trying to learn about memory leaks and how to get rid of them.
Here's some code that I'm trying to remove leaks from, but I'm not entirely sure how to do it.
Thanks in Advanced
-
General Spawner 1
-
Events
- Time - Every 38.00 seconds of game time
-
Conditions
- (Number of units in (Units owned by Player 10 (Light Blue))) Less than or equal to MaxPlayer10Units
- (Grigori's Portal 0017 <gen> is alive) Equal to True
-
Actions
- Set Temp_Point = (Center of 1 <gen>)
- Set Temp_PointTemple = (Center of Temple <gen>)
- Unit - Create rateMelee[1] uMeleeSpawner[iLevelsSide1[1]] for Player 10 (Light Blue) at Temp_Point facing Default building facing degrees
- Unit Group - Order (Last created unit group) to Attack-Move To Temp_PointTemple
- Custom script: call RemoveLocation (udg_Temp_Point)
- Custom script: call RemoveLocation (udg_Temp_PointTemple)
- Set Temp_Point = (Center of 1 <gen>)
- Set Temp_PointTemple = (Center of Temple <gen>)
- Unit - Create rateRanged[1] uRangedSpawner[iLevelsSide1[2]] for Player 10 (Light Blue) at Temp_Point facing Default building facing degrees
- Unit Group - Order (Last created unit group) to Attack-Move To Temp_PointTemple
- Custom script: call RemoveLocation (udg_Temp_Point)
- Custom script: call RemoveLocation (udg_Temp_PointTemple)
- Set Temp_Point = (Center of 1 <gen>)
- Set Temp_PointTemple = (Center of Temple <gen>)
- Unit - Create rateAir[1] uAirSpawner[iLevelsSide1[3]] for Player 10 (Light Blue) at Temp_Point facing Default building facing degrees
- Unit Group - Order (Last created unit group) to Attack-Move To Temp_PointTemple
- Custom script: call RemoveLocation (udg_Temp_Point)
- Custom script: call RemoveLocation (udg_Temp_PointTemple)
- Set Temp_Point = (Center of 1 <gen>)
- Set Temp_PointTemple = (Center of Temple <gen>)
- Unit - Create rateInvisible[1] uInvisibleSpawner[iLevelsSide1[4]] for Player 10 (Light Blue) at Temp_Point facing Default building facing degrees
- Unit Group - Order (Last created unit group) to Attack-Move To Temp_PointTemple
- Custom script: call RemoveLocation (udg_Temp_Point)
- Custom script: call RemoveLocation (udg_Temp_PointTemple)
- Set Temp_Point = (Center of 1 <gen>)
- Set Temp_PointTemple = (Center of Temple <gen>)
- Unit - Create rateMagic[1] uMagicSpawner[iLevelsSide1[5]] for Player 10 (Light Blue) at Temp_Point facing Default building facing degrees
- Unit Group - Order (Last created unit group) to Attack-Move To Temp_PointTemple
- Custom script: call RemoveLocation (udg_Temp_Point)
- Custom script: call RemoveLocation (udg_Temp_PointTemple)
- Set Temp_Point = (Center of 1 <gen>)
- Set Temp_PointTemple = (Center of Temple <gen>)
- Unit - Create rateHero[1] uHeroSpawner[iLevelsSide1[6]] for Player 10 (Light Blue) at Temp_Point facing Default building facing degrees
- Unit Group - Order (Last created unit group) to Attack-Move To Temp_PointTemple
- Custom script: call RemoveLocation (udg_Temp_Point)
- Custom script: call RemoveLocation (udg_Temp_PointTemple)
-
Events
Last edited by a moderator: