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

[General] Is there a [Selected Unit]?

Status
Not open for further replies.
Level 14
Joined
Apr 20, 2009
Messages
1,543
There's a simple function for this:

  • Unit Group - Pick every unit in (Units currently selected by Player 1 (Red)) and do (Actions)
    • Loop - Actions
you can then simply check with if/then/else what units are selected

You do realise this is way slower then using an event with triggering unit right?
I don't really recommend using this instead of a new trigger.
Plus the fact that you should probably destroy the unit group ;)
  • Custom script: set bj_wantDestroyGroup = true
Before enumerating through the unit group.
 
Status
Not open for further replies.
Top