[kind solved] I have units that battle each other, However I want the units from the opposite team to auto attack a players hero if they walk the hero in front of their teams units. I think that there has to be a way to make them change to closest target. If not that then just make the hero threaten higher but not to were they attack him if he is behind his teams units.
I would be ok with a trigger but I'm scared that a trigger like that would cause lag. Plus i already have a trigger ordering those units to attack a point.
so I couldn't get that to work. Probably a better way what you said however I couldn't figure it out. What I did do was make it to were my hero's flag (always a threat to attackers) was on and then took the chase filters off on the weapons of attacking units. Kinda works but not exactly how I wanted it.
[kind solved] I have units that battle each other, However I want the units from the opposite team to auto attack a players hero if they walk the hero in front of their teams units. I think that there has to be a way to make them change to closest target. If not that then just make the hero threaten higher but not to were they attack him if he is behind his teams units.
I would be ok with a trigger but I'm scared that a trigger like that would cause lag. Plus i already have a trigger ordering those units to attack a point.
So you want the hero to have a higher Combat: Attack Target Priority while the weapons do not have the Continuous Scan flag enabled.
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
In reply to DrSuperEvil:
In reply to SackBaggins:
Try using target sorts. (A field you can use in weapon/effect data) I believe the one called "TSDistance" will give you the desired result.
Looking for feedback on my custom races extension mod called "Scion Custom Races (Mod)"