When a Phoenix moves close to enemy air units, it shoots at the closest target while moving. The problem is that the Phoenix never keeps focus fire on a unit. As soon as an other unit comes closer, the Phoenix attacks it instead.
I am trying to make the Phoenix KEEP focus fire on a unit that it is ordered to attack, even if other units come closer to the Phoenix. When the focused unit gets out of range from the Phoenix, or it dies, the Phoenix will shoot at the closest unit again, as normal.
Similar to how the Cyclone has the Lock On ability.
Any ideas how to make this WITHOUT having to add an activated ability to the Phoenix?
I would get the weapon to use a Set effect that has an Apply Behavior effect to add a short duration buff that the target sort with caster history used by the weapon for acquisition looks for.
Thanks for your reply, but I don't understand what you mean with "target sort with caster history".
I assume the principle is that the Phoenix weapon adds a buff on the enemy and then the Phoenix searches for that buff on units the next time it attacks, thus keeping its focus.
Would you mind to clarify? This would require an Array to be created for the field "Acquire target sorts" in the weapon, right?
Thanks, but would this mean that other Phoenixes would search for that unit too? So if Phoenix A attacks a unit and adds a buff on it, Phoenix B and C would all of a sudden focus fire on that unit too, without being given the order?
Anyways, I will experiment in the editor and see if I can get it to work!
Under the Target Sorts data type the Behavior Count type target sort has the Unit - Value field for the caster history. Set this field to caster so it will only look for buff stacks added by the casting unit (similar to liberator). Just remember to allow your buff to have a max of 1 per caster and a high max stack count.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
When a Phoenix moves close to enemy air units, it shoots at the closest target while moving. The problem is that the Phoenix never keeps focus fire on a unit. As soon as an other unit comes closer, the Phoenix attacks it instead.
I am trying to make the Phoenix KEEP focus fire on a unit that it is ordered to attack, even if other units come closer to the Phoenix. When the focused unit gets out of range from the Phoenix, or it dies, the Phoenix will shoot at the closest unit again, as normal.
Similar to how the Cyclone has the Lock On ability.
Any ideas how to make this WITHOUT having to add an activated ability to the Phoenix?
I would get the weapon to use a Set effect that has an Apply Behavior effect to add a short duration buff that the target sort with caster history used by the weapon for acquisition looks for.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
Thanks for your reply, but I don't understand what you mean with "target sort with caster history".
I assume the principle is that the Phoenix weapon adds a buff on the enemy and then the Phoenix searches for that buff on units the next time it attacks, thus keeping its focus.
Would you mind to clarify? This would require an Array to be created for the field "Acquire target sorts" in the weapon, right?
It's pretty much it. And if it does not find any potential target with the buff just pick the closest, like it's doing by default.
Working on projects:
Thanks, but would this mean that other Phoenixes would search for that unit too? So if Phoenix A attacks a unit and adds a buff on it, Phoenix B and C would all of a sudden focus fire on that unit too, without being given the order?
Anyways, I will experiment in the editor and see if I can get it to work!
Under the Target Sorts data type the Behavior Count type target sort has the Unit - Value field for the caster history. Set this field to caster so it will only look for buff stacks added by the casting unit (similar to liberator). Just remember to allow your buff to have a max of 1 per caster and a high max stack count.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg