• 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.

Picked Unit

Status
Not open for further replies.
Level 10
Joined
May 28, 2011
Messages
455
How to use picked unit if i have nested (unit group - pick every unit in unit group and do multiple action)
For example, i pick every unit in target_unit_group and i want to pick units around the picked unit (from target_unit_group) matching several conditions to deal damage to them. Anyone has idea to solve this?
 
Remember to destroy temporary group afterwards, because you create them just to deal damage and you don't need them anymore.
Using custom script before creating that group should fix the problem:
  • Custom script: set bj_wantDestroyGroup = true
Furthermore, you should think about 'protection group' to not pick some units multiple times - meaning much more damage, instead of just once per action (although meaby thats what you want).
 
Status
Not open for further replies.
Top