Is there any way to make a unit type able to automatically acquire a target to attack from any distance? I want to be able to spawn some units for a hostile player with full vision, and have those units able to automatically acquire the closest enemy unit and head for it, changing targets if need be.
Is this possible? I've messed with the data editor for quite some time now, I have found 'Acquire Path Limit' on the Attack ability, and 'Minimum Scan Range' on the unit type's Weapon, but neither of those seems to have done the trick; although setting the Minimum Scan Range to 500 and the Acquire Path Limit to 500 just about doubled the range at which the unit would acquire targets. It seems to me that a range of 500 will surely cover a medium map size, so there must be a problem somewhere.
Edit: I would also like it if the spawned units would not give up their chase after a certain range..
In my map, I am spawning up to 300 units at any given time to attack the players (team of six). I want each player to be in danger (i.e. targeted by 300/6 enemies), but I don't want to simply Issue the spawned units to Attack the player unit, as that will make them ignore other players if they should come across them. I also cannot order them to attack the location of the player unit, because as the player moves that location will be out of date.
Have you tried the Global Suicide AI action yet? I haven't used it personally myself but I've heard that it does what you are trying to do. (I.E. tell all units owned by a certain player to attack the nearest enemy.)
Is there any way to make a unit type able to automatically acquire a target to attack from any distance? I want to be able to spawn some units for a hostile player with full vision, and have those units able to automatically acquire the closest enemy unit and head for it, changing targets if need be.
Is this possible? I've messed with the data editor for quite some time now, I have found 'Acquire Path Limit' on the Attack ability, and 'Minimum Scan Range' on the unit type's Weapon, but neither of those seems to have done the trick; although setting the Minimum Scan Range to 500 and the Acquire Path Limit to 500 just about doubled the range at which the unit would acquire targets. It seems to me that a range of 500 will surely cover a medium map size, so there must be a problem somewhere.
Edit: I would also like it if the spawned units would not give up their chase after a certain range..
Bump.
In my map, I am spawning up to 300 units at any given time to attack the players (team of six). I want each player to be in danger (i.e. targeted by 300/6 enemies), but I don't want to simply Issue the spawned units to Attack the player unit, as that will make them ignore other players if they should come across them. I also cannot order them to attack the location of the player unit, because as the player moves that location will be out of date.
@anguule: Go
Have you tried the Global Suicide AI action yet? I haven't used it personally myself but I've heard that it does what you are trying to do. (I.E. tell all units owned by a certain player to attack the nearest enemy.)
@anguule: Go
As a workaround maybe you could run a periodic trigger which orders the units to attack move the players location every second or so.