EdgeOfChaos
E
EdgeOfChaos
Could someone help me figure out the leak here?
-
Black Hole
-
Events
- Time - Every 0.04 seconds of game time
- Conditions
-
Actions
-
Unit Group - Pick every unit in BlackHolesGroup and do (Actions)
-
Loop - Actions
- Set TempPoint2 = (Position of (Picked unit))
- Set TempGroup = (Units within 1400.00 of TempPoint2 matching ((Owner of (Matching unit)) Not equal to Player 12 (Brown)))
-
Unit Group - Pick every unit in TempGroup and do (Actions)
-
Loop - Actions
- Set TempPoint3 = (Position of (Picked unit))
- Set TempPoint = (TempPoint3 offset by ((1400.00 - (Distance between TempPoint3 and TempPoint2)) / 150.00) towards (Angle from TempPoint3 to TempPoint2) degrees)
- Set X = (Integer((X of TempPoint)))
- Set Y = (Integer((Y of TempPoint)))
- Custom script: call SetUnitX(GetEnumUnit(), udg_X)
- Custom script: call SetUnitY(GetEnumUnit(), udg_Y)
- Custom script: call RemoveLocation(udg_TempPoint)
- Custom script: call RemoveLocation(udg_TempPoint3)
-
Loop - Actions
- Custom script: call DestroyGroup(udg_TempGroup)
- Custom script: call RemoveLocation(udg_TempPoint2)
-
Loop - Actions
-
Unit Group - Pick every unit in BlackHolesGroup and do (Actions)
-
Events