- Joined
- Nov 21, 2008
- Messages
- 316
I want to make it so the units stop after they reach the attack point.
what line do i add?
what line do i add?
-
Grunt Wave
-
Events
- Time - Every 2.25 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) and ((Unit-type of (Matching unit)) Not equal to Flag of Death)))
- Set Unitposition = (Position of (Random unit from TempGroup2))
-
For each (Integer A) from 1 to 4, 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 Unitposition
- 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 Unitposition
- Custom script: call RemoveLocation (udg_Spawn_Point2[1])
- Custom script: call RemoveLocation (udg_Spawn_Point2[bj_forLoopAIndex])
- Wait 0.00 seconds
-
Loop - Actions
- Custom script: call DestroyGroup(udg_TempGroup)
- Custom script: call DestroyGroup(udg_TempGroup2)
- Custom script: call RemoveLocation(udg_Unitposition)
-
Events
-
Orc Attack
-
Events
- Time - Every 60.00 seconds of game time
- Conditions
-
Actions
- Set DoingNothingGroup = (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) and ((Unit-type of (Matching unit)) Not equal to Flag of Death)))
- Set Unitposition = (Position of (Random unit from TempGroup2))
-
Unit Group - Pick every unit in DoingNothingGroup and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Current order of (Picked unit)) Equal to (Order(<Empty String>))
-
Then - Actions
- Unit - Order (Picked unit) to Attack-Move To Unitposition
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Custom script: call DestroyGroup(udg_DoingNothingGroup)
- Custom script: call DestroyGroup(udg_TempGroup2)
- Custom script: call RemoveLocation(udg_Unitposition)
-
Events