- Joined
- Jul 11, 2007
- Messages
- 152
I'm making a survival map but am experiencing many problems with the computer movement. Right now after spawning the unit group attack-moves to a random point in the map and in addition to stop them from returning to the spawn region I have:
Events
Time - Every 25.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Picked unit)) Equal to Player 12 (Brown)
Then - Actions
Unit - Order (Matching unit) to Attack (Random unit from (Units in (Playable map area) owned by Player 1 (Red)))
Else - Actions
Do nothing
(Will later be changed to all human players not just red)
The problem is it gets sloppy if the units are being attacked and have a conflict of where to go. They sometimes run around in circles or dance around before attacking defenses. How do I fix this?
Also I have a separate unit group that I want to patrol around the perimeter of the map but cannot get it to work smoothly with regions. Any solutions?
Thanks
Events
Time - Every 25.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Picked unit)) Equal to Player 12 (Brown)
Then - Actions
Unit - Order (Matching unit) to Attack (Random unit from (Units in (Playable map area) owned by Player 1 (Red)))
Else - Actions
Do nothing
(Will later be changed to all human players not just red)
The problem is it gets sloppy if the units are being attacked and have a conflict of where to go. They sometimes run around in circles or dance around before attacking defenses. How do I fix this?
Also I have a separate unit group that I want to patrol around the perimeter of the map but cannot get it to work smoothly with regions. Any solutions?
Thanks