Warcraft III resources & community, 2003–2006 · archived

help on picking every unit

4 posts
#1

help on picking every unit

hi..
can i ask what's the code on
picking all enemy units in a tageted area spell..
which stores them in a unit group..

coz.. mine. ets to store friendly units too..
even gets the caster..

i wanna store them in a unit group called "targeted_units"

.. well.. i know this is easy.. but i don't seem to get the picked unit and the matching unit.. =p??.. hehe

thnx advnce.. =p
#2
Pick every unit in <AOE of Spell> Matching- All conditions you need(example: Is an enemy=true, is Magic Immune=false, Etc)
#3
Pick every units in units within "X" range of target point of ability being cast matching (here you put the conditions, I think you need to put conditions like check if the unit is not a structure, if the matching unit is an enemy of the casting unit...) and then add picked unit to targets_group. :wink:
#4
Oh, sorry for the name of the unit group :lol: !

targeted_units :D