OuTLawZ-GoSu
New Member
- Reaction score
- 0
I'm working on a cat and mouse map. Everything is working exept the computer. I need the computer to chase the mice, but I always get this weird problem. When ever I order the computer to attack a unit, the the computer's units move a little bit, then go back to their spawn points.
Someone suggested this trigger to fix the problem:
Player 12 is the computer
Players 1-8's units are in the group MouseGroup.
But when the cats try to attack, they keep picking random units too fast and end up running back and fourth, looking confused. They never attack, just run back and forth.
I couldn't find any refrences that would help me, there are no unprotected cat and mouse type games with ai available, or I just didn't look hard enough.
I spent alot of time on this, and I'm still stuck.
What can I do to make the cats attack like they do in Starcraft cat and mouse maps? Help?
Someone suggested this trigger to fix the problem:
Events
Time - Every 0.10 seconds of game time
Conditions
Actions
Unit Group - Order (Units in (Playable map area) owned by Player 12 (Brown)) to Attack (Random unit from MouseGroup)
Player 12 is the computer
Players 1-8's units are in the group MouseGroup.
But when the cats try to attack, they keep picking random units too fast and end up running back and fourth, looking confused. They never attack, just run back and forth.
I couldn't find any refrences that would help me, there are no unprotected cat and mouse type games with ai available, or I just didn't look hard enough.
I spent alot of time on this, and I'm still stuck.
What can I do to make the cats attack like they do in Starcraft cat and mouse maps? Help?