I was wondering if it's possible to modify the way a unit prioritizes targets to avoid doing splash damage to friendly units. Here's an example of what I mean:
Let's say a siege tank is deployed near a bunker. The bunker is being attacked by zerglings and hydralisks. If the tank attacks the zerglings, it'll damage the bunker with splash damage, but if it attacks the hydralisks it won't. However, left alone, the tank will attack the zerglings first. Sometimes the tank ends up doing more damage to the bunker than the zerglings did.
So, is it possible to make the tank shoot at the hydralisks first, and only turn its cannon on the zerglings when there are no other targets?
Damage effects, change the search filters so that they exclude ally and self.
Eh, nm, that's just for damage not targetting. Looks like Borg has it. I need to pay attention >.<.
Edit: Another thought, if that doesn't work is to use a work around by giving allied units a behavior that uses a small area search effect to apply a hidden dummy buff (like an aura) to nearby enemies that tanks have a validator for that keeps them from attacking those targets.
edit : woops misread.
If you want the hydralisk to be considered a larger threath to enemy units, just check unit tab and search for "priority" or something similar.
Then compare both zerglings and hydralisk's fields and put a higher number in hydralisk's.
To clarify, what I meant was not "hydralisks should always take priority over zerglings", that was just the example I gave, but rather "units that are right next to my own stuff should be attacked last." Ultralisks are with zerglings on the "don't attack unless there's nothing else left" list. So it looks like adovid's suggestion would be best.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I was wondering if it's possible to modify the way a unit prioritizes targets to avoid doing splash damage to friendly units. Here's an example of what I mean:
Let's say a siege tank is deployed near a bunker. The bunker is being attacked by zerglings and hydralisks. If the tank attacks the zerglings, it'll damage the bunker with splash damage, but if it attacks the hydralisks it won't. However, left alone, the tank will attack the zerglings first. Sometimes the tank ends up doing more damage to the bunker than the zerglings did.
So, is it possible to make the tank shoot at the hydralisks first, and only turn its cannon on the zerglings when there are no other targets?
@dgh64: Go
Hmm.. Taking a look at the Weapon(Siege Tank - Crucio Shock Cannon) I see 2 fields you may want to fiddle around with.
Possibly add TSPriority to Acquire Target Sorts +, and fool around with that. Make it prioritize higher valued targets first.
Damage effects, change the search filters so that they exclude ally and self.
Eh, nm, that's just for damage not targetting. Looks like Borg has it. I need to pay attention >.<.
Edit: Another thought, if that doesn't work is to use a work around by giving allied units a behavior that uses a small area search effect to apply a hidden dummy buff (like an aura) to nearby enemies that tanks have a validator for that keeps them from attacking those targets.
Hmm... thanks for the suggestions.
To clarify, what I meant was not "hydralisks should always take priority over zerglings", that was just the example I gave, but rather "units that are right next to my own stuff should be attacked last." Ultralisks are with zerglings on the "don't attack unless there's nothing else left" list. So it looks like adovid's suggestion would be best.