Alright so I have a start and a end to this arcade game I'm making. Basically the zerglings have to destroy everything in their path and the obstacles are buildings. When I go from point a to point b the zerglings just run into the wall then go idle... so I made multiple points all the way around the map to make it easier for the ai but... the ones able to attack the buildings do but the ones behind trying to just go idle after awhile. How do I make them continue to want to move onto points?
You could use 'wait until unit becomes idle' and throw it under a repeat function. Underneath the wait action, you could issue the order again.
Alternatively, you could periodically pick out all idle units for a player, then check if they are zerglings or in your zergling unit group, and reissue the attack order to them.
You could use 'wait until unit becomes idle' and throw it under a repeat function. Underneath the wait action, you could issue the order again.
Alternatively, you could periodically pick out all idle units for a player, then check if they are zerglings or in your zergling unit group, and reissue the attack order to them.
I found the idle trigger but not sure exactly to do with it? Isnt there a way to make your units follow a path and not go idle in the first place? What is the path tool for anyways?
I'm not sure what your problem is. Is it the zerglings not finding surface area to attack and then going idle after a while?
The path tool is for "painting" on pathing on the map, for example if you want to have an area where no unit can walk onto or where no buildings can be placed.
store their current point in a custom value. save all your points in an array points [x]. now whenever you issue a unit to move somewhere, you save the somewhere in a custom value of the unit. now pick each unit on the map, check if it is moving and if not issue order to the saved point.
Alright so I have a start and a end to this arcade game I'm making. Basically the zerglings have to destroy everything in their path and the obstacles are buildings. When I go from point a to point b the zerglings just run into the wall then go idle... so I made multiple points all the way around the map to make it easier for the ai but... the ones able to attack the buildings do but the ones behind trying to just go idle after awhile. How do I make them continue to want to move onto points?
You could use 'wait until unit becomes idle' and throw it under a repeat function. Underneath the wait action, you could issue the order again.
Alternatively, you could periodically pick out all idle units for a player, then check if they are zerglings or in your zergling unit group, and reissue the attack order to them.
I found the idle trigger but not sure exactly to do with it? Isnt there a way to make your units follow a path and not go idle in the first place? What is the path tool for anyways?
I'm not sure what your problem is. Is it the zerglings not finding surface area to attack and then going idle after a while?
The path tool is for "painting" on pathing on the map, for example if you want to have an area where no unit can walk onto or where no buildings can be placed.
@Elmaex: Go
store their current point in a custom value. save all your points in an array points [x]. now whenever you issue a unit to move somewhere, you save the somewhere in a custom value of the unit. now pick each unit on the map, check if it is moving and if not issue order to the saved point.
@Glaurungsc: Go
Here's an example map I made awhile back telling idle computer units to stop being lazy butts. See the 'idle attack group units' trigger.
Do you have a ts, Ventrilo or xfire?