- Joined
- Nov 21, 2008
- Messages
- 316
In my original trigger, i had a problem becasue grunts would just lock on to a targeted unit, and not hit anyone in there way or any one attacking. Now that i changed the trigger to hit ppl in there path, it lags, why is this?
Old Non-laggy trigger(they never hit other people)
Old Non-laggy trigger(they never hit other people)
-
Grunt Wave
-

Events
-


Time - Every 2.00 seconds of game time
-
-

Conditions
-

Actions
-


Set TempGroup = (Units in (Playable map area) matching (((Owner of (Matching unit)) Equal to Player 11 (Dark Green)) or ((Owner of (Matching unit)) Equal to Player 12 (Brown))))
-


Set TempGroup2 = (Units in (Playable map area) matching (((Matching unit) belongs to an enemy of Player 12 (Brown)) Equal to True))
-


For each (Integer A) from 1 to 3, do (Actions)
-



Loop - Actions
-




Set Spawn_Point2[1] = (Random point in SpawnRegions2[(Random integer number between 1 and 3)])
-




Unit - Create 1 Grunt for Player 12 (Brown) at Spawn_Point2[1] facing Default building facing degrees
-




Unit - Order (Last created unit) to Attack (Random unit from TempGroup2)
-




Unit - Create 1 Grunt for Player 11 (Dark Green) at Spawn_Point2[1] facing Default building facing degrees
-




Unit - Order (Last created unit) to Attack (Random unit from TempGroup2)
-




Custom script: call RemoveLocation (udg_Spawn_Point2[1])
-




Custom script: call RemoveLocation (udg_Spawn_Point2[bj_forLoopAIndex])
-




Wait 0.00 seconds
-
-
-


Custom script: call DestroyGroup(udg_TempGroup)
-


Custom script: call DestroyGroup(udg_TempGroup2)
-
-
-
Grunt Wave
-

Events
-


Time - Every 2.00 seconds of game time
-
-

Conditions
-

Actions
-


Set TempGroup = (Units in (Playable map area) matching (((Owner of (Matching unit)) Equal to Player 11 (Dark Green)) or ((Owner of (Matching unit)) Equal to Player 12 (Brown))))
-


Set TempGroup2 = (Units in (Playable map area) matching (((Matching unit) belongs to an enemy of Player 12 (Brown)) Equal to True))
-


For each (Integer A) from 1 to 3, do (Actions)
-



Loop - Actions
-




Set Spawn_Point2[1] = (Random point in SpawnRegions2[(Random integer number between 1 and 3)])
-




Unit - Create 1 Grunt for Player 12 (Brown) at Spawn_Point2[1] facing Default building facing degrees
-




Unit - Order (Last created unit) to Attack-Move To (Position of (Random unit from TempGroup2))
-




Unit - Create 1 Grunt for Player 11 (Dark Green) at Spawn_Point2[1] facing Default building facing degrees
-




Unit - Order (Last created unit) to Attack-Move To (Position of (Random unit from TempGroup2))
-




Custom script: call RemoveLocation (udg_Spawn_Point2[1])
-




Custom script: call RemoveLocation (udg_Spawn_Point2[bj_forLoopAIndex])
-




Wait 0.00 seconds
-
-
-


Custom script: call DestroyGroup(udg_TempGroup)
-


Custom script: call DestroyGroup(udg_TempGroup2)
-
-



