• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

help on picking every unit

Status
Not open for further replies.
Level 5
Joined
Apr 16, 2005
Messages
135
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
 
Level 6
Joined
Aug 12, 2005
Messages
205
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:
 
Status
Not open for further replies.
Top