original trigger
New trigger
Is that right?
If so I now know what I'm doing to fix my mem leaks (that i didn't know about until yesterday)
Trigger:
- spawner
- Events
- Time - Timer expires
- Conditions
- Actions
- Unit Group - Pick every unit in (Units in Region 1 1 <gen> matching ((Unit-type of (Matching unit)) Equal to Zerg Spawner)) and do (Actions)
- Loop - Actions
- Unit - Create 1 Hydralisk Warrior for (Owner of (Picked unit)) at (Center of Region 1 1 <gen>) facing Default building facing degrees
- Hero - Modify unspent skill points of (Last created unit): Set to 0 points
- Loop - Actions
- Unit Group - Pick every unit in (Units in Region 1 1 <gen> matching ((Unit-type of (Matching unit)) Equal to Zerg Spawner)) and do (Actions)
- Events
New trigger
Trigger:
- spawner
- Events
- Time - Timer expires
- Conditions
- Actions
- Set Tempgroup = (Units in Region 1 1 <gen> matching ((Unit-type of (Matching unit)) Equal to Zerg Spawner))
- Unit Group - Pick every unit in Tempgroup and do (Actions)
- Loop - Actions
- Unit - Create 1 Hydralisk Warrior for (Owner of (Picked unit)) at (Center of Region 1 1 <gen>) facing Default building facing degrees
- Hero - Modify unspent skill points of (Last created unit): Set to 0 points
- Loop - Actions
- Custom script: call DestroyGroup (udg_TempGroup)
- Events
Is that right?
If so I now know what I'm doing to fix my mem leaks (that i didn't know about until yesterday)