EdgeOfChaos
E
EdgeOfChaos
Could someone help me figure out the leak here?
. X and Y are integers, the rest are points/groups. BlackHoleGroup is initiated at the start of the map and units are added to it.
-
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)
-
-
-
Custom script: call DestroyGroup(udg_TempGroup)
-
Custom script: call RemoveLocation(udg_TempPoint2)
-
-
-
-