I'm trying to make a unit that prioritizes particular units. It's a very long range artillery, let's say mapwide. I'd like for it to prioritize enemy spellcaster units (units with mana and/or relatively low max life). Due to other limitations I can't just use a TargetSort, so I'd like to use a Trigger for it to prioritize units in this fashion, is there a way to sort units in the map for an issue-order attack in triggers?
well you just do the issue order native and the target unit is unit 1 of unitgroup whereas the unitgroup is the group of possible targets or am i missing something? if you want it to be random you dont select 1, instead you do random integer from 1 to number of units in unit group.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hey,
I'm trying to make a unit that prioritizes particular units. It's a very long range artillery, let's say mapwide. I'd like for it to prioritize enemy spellcaster units (units with mana and/or relatively low max life). Due to other limitations I can't just use a TargetSort, so I'd like to use a Trigger for it to prioritize units in this fashion, is there a way to sort units in the map for an issue-order attack in triggers?
Thanks in advance
well you just do the issue order native and the target unit is unit 1 of unitgroup whereas the unitgroup is the group of possible targets or am i missing something? if you want it to be random you dont select 1, instead you do random integer from 1 to number of units in unit group.