• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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