Hello, for my mod I need to be able to make some of the units prioritize certain types of targets, e.g. Massive units or Armored units. In other words, the unit should still be able to attack any regular target, but if a prioritized target is nearby, it should focuse-fire it. Right now the best solution I can come up with is a trigger that cycles repeatedly over the unit group and checks whether any enemy unit near them has the corresponding attribute, and then issues an order to attack that unit. This solution feels somewhat ugly to me, so I thought maybe someone here could suggest a better option. Thank you!
Hello,
for my mod I need to be able to make some of the units prioritize certain types of targets, e.g. Massive units or Armored units.
In other words, the unit should still be able to attack any regular target, but if a prioritized target is nearby, it should focuse-fire it.
Right now the best solution I can come up with is a trigger that cycles repeatedly over the unit group and checks whether any enemy unit near them has the corresponding attribute, and then issues an order to attack that unit.
This solution feels somewhat ugly to me, so I thought maybe someone here could suggest a better option.
Thank you!
Why not just use Target Sorts/Finds for their weapons/abilities and the Attack ability?
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
Target/Sorts/Finds is bugged on weapons and does not work properly. You have to use it on a Search Area effect to make it work properly.