I haven't found a solution to this problem even though I've seen it asked around various websites.
Problem
When a unit (A) is ordered to attack another unit (B), it will automatically run towards B until it's within the weapon range. I wish to keep the attack behavior, but remove the movement. I'm sure this is possible in the data editor somewhere.
Attempts
In my attempts I've tried changing most values and flags I've found that seem relevant to the issue, but the little guy is just too darn determined to attack the unit and will move towards the enemy until it's within range.
The following are a few of the things I've tried changing:
Unit
Marine
Behavior - Response: No Response
Combat - Default Acquire Level: None
Weapons
C-14 Gauss Rifle
Weapon - Allowed Movement: None
Weapon - Options: Tried multiple combinations
Weapon - Scan Filters: Exclude all
Weapon - Target Filters: Exclude all
Is there anyone out there that has a proper solution for preventing automatic range acquisition? If so, please share, you would be an absolute life saver. Otherwise I'll have to develop some dodgy trigger based preventative measure.
Creating an augment ability doesn't work. It seems that the augment ability only runs before the main ability. So if you issue the order stop. The unit will stop, but instantly attack straight after.
If only there was some way of adding a validator to the default attack ability.
What I said must work Huesy. Create a dummie skill that have a target, but doesn't call any effect. Call it Attack, and put the same icon. Sustitute the command card Attack with this dummie Attack skill. (You'll probably need to set the hotkey to mouse right click is possible, if not you'll need extra code for the right click attacking).
I haven't found a solution to this problem even though I've seen it asked around various websites.
Problem
When a unit (A) is ordered to attack another unit (B), it will automatically run towards B until it's within the weapon range. I wish to keep the attack behavior, but remove the movement. I'm sure this is possible in the data editor somewhere.
Attempts
In my attempts I've tried changing most values and flags I've found that seem relevant to the issue, but the little guy is just too darn determined to attack the unit and will move towards the enemy until it's within range.
The following are a few of the things I've tried changing:
Unit
Marine
Weapons
C-14 Gauss Rifle
Is there anyone out there that has a proper solution for preventing automatic range acquisition? If so, please share, you would be an absolute life saver. Otherwise I'll have to develop some dodgy trigger based preventative measure.
@Huesy: Go
Probably has nothing to do with the Unit or Weapon. Sounds more like the order Attack.
You can do a custom Attack order probably, where do you check first if the unit is in range, then order Attack.
@fr0d0b0ls0n: Go
I would suggest an augment ability that issues a "stop" order if the current order target range is larger than the unit's attack range.
@RileyStarcraft: Go
Creating an augment ability doesn't work. It seems that the augment ability only runs before the main ability. So if you issue the order stop. The unit will stop, but instantly attack straight after.
If only there was some way of adding a validator to the default attack ability.
@Huesy: Go
What I said must work Huesy. Create a dummie skill that have a target, but doesn't call any effect. Call it Attack, and put the same icon. Sustitute the command card Attack with this dummie Attack skill. (You'll probably need to set the hotkey to mouse right click is possible, if not you'll need extra code for the right click attacking).
Then create a trigger like:
@fr0d0b0ls0n: Go
It'll have to do for now I guess. I'm just convinced there's a data-based solution somewhere. I'll find it one day!
Thanks for the help :)