• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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