Greetings. I've been trying to set up a weapon to always prioritize units furthest from it, but haven't figured out how. I've tried making a custom Target Sorts, but haven't had any luck. Does anyone know of a way to achieve this?
Do you mean using a Search Area effect to issue to attack order? Or using a search effect in the attack of the turret itself?
I'm trying the use of a behavior with a very short period effect that searches for targets and issues the order command. The only problem is spamming commands causes a lot of lag.
Okay, so I've come up with a half way work around for this problem. I basically made a behavior on the tower that is using the weapon and every 1 second it does a Search Area effect with a custom Target Sort that searches for the furthest target, then uses a "Issue Order" effect to force the tower to attack that unit. For my purposes this is actually a little better then the weapon simply prioritizing further units, because it forces the tower to switch targets before the targeted unit is dead.
Just duplicate the TSDistanceToTarget target sort but change the 'Descending' field within it to be Enabled instead of not enabled. This will make it so your target sort will target the unit furthest away rather than the closest.
Greetings. I've been trying to set up a weapon to always prioritize units furthest from it, but haven't figured out how. I've tried making a custom Target Sorts, but haven't had any luck. Does anyone know of a way to achieve this?
Thanks!
Tried using a Search Area effect with a low arc, 1 max unit and a target sort?
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
Do you mean using a Search Area effect to issue to attack order? Or using a search effect in the attack of the turret itself?
I'm trying the use of a behavior with a very short period effect that searches for targets and issues the order command. The only problem is spamming commands causes a lot of lag.
Okay, so I've come up with a half way work around for this problem. I basically made a behavior on the tower that is using the weapon and every 1 second it does a Search Area effect with a custom Target Sort that searches for the furthest target, then uses a "Issue Order" effect to force the tower to attack that unit. For my purposes this is actually a little better then the weapon simply prioritizing further units, because it forces the tower to switch targets before the targeted unit is dead.
Just use the weapon to use the search areas effect. As it is a low arc it will be as if the weapon itself is attacking the furthest unit.
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
Just duplicate the TSDistanceToTarget target sort but change the 'Descending' field within it to be Enabled instead of not enabled. This will make it so your target sort will target the unit furthest away rather than the closest.