- Joined
- May 12, 2008
- Messages
- 80
Hey guys,
i was wondering if locations that are used to define a unit group have to be destroyed as well, not only the group itself.
a few examples to make this easier to understand:
1. This will cause memory leaks for sure:
EDIT: Sorry for german language. I think its not relevant to change it.
i was wondering if locations that are used to define a unit group have to be destroyed as well, not only the group itself.
a few examples to make this easier to understand:
1. This will cause memory leaks for sure:
-
Test
-
Ereignisse
- Einheit - A unit Startet den Effekt einer Fähigkeit
- Bedingungen
-
Aktionen
-
Einheitengruppe - Pick every unit in (Units within 500.00 of (Position of (Casting unit))) and do (Actions)
-
Schleifen - Aktionen
- Einheit - Explode (Picked unit)
-
Schleifen - Aktionen
-
Einheitengruppe - Pick every unit in (Units within 500.00 of (Position of (Casting unit))) and do (Actions)
-
Ereignisse
-
Test
-
Ereignisse
- Einheit - A unit Startet den Effekt einer Fähigkeit
- Bedingungen
-
Aktionen
- Set _Point = (Position of (Casting unit))
- Custom script: set bj_wantDestroyGroup = true
-
Einheitengruppe - Pick every unit in (Units within 500.00 of _Point) and do (Actions)
-
Schleifen - Aktionen
- Einheit - Explode (Picked unit)
-
Schleifen - Aktionen
- Custom script: call RemoveLocation (udg__Point)
-
Ereignisse
-
Test
-
Ereignisse
- Einheit - A unit Startet den Effekt einer Fähigkeit
- Bedingungen
-
Aktionen
- Custom script: set bj_wantDestroyGroup = true
-
Einheitengruppe - Pick every unit in (Units within 500.00 of (Position of (Casting unit))) and do (Actions)
-
Schleifen - Aktionen
- Einheit - Explode (Picked unit)
-
Schleifen - Aktionen
-
Ereignisse
EDIT: Sorry for german language. I think its not relevant to change it.