Groups
Adds all the units in the source unit group to the target unit group.
Returns the center of a group of units, defined as the average of their X and Y positions. Returns No Point if the unit group is empty.
Picks the closest unit to the point specified in a unit group.
Removes all the units in the source unit group from the target unit group.
Adds the specified unit to the specified unit group.
Removes all the units in the specified unit group.
Copies the specified unit group.
Returns the total number of units in the specified unit group.
Returns true if the specified unit is part of the specified unit group.
Returns a random unit from the specified unit group.
Removes the specified unit from the specified unit group.
Returns a specific unit, by index, from the unit group. Use the "Number Of Units In Unit Group" function to determine how many units are in the unit group.
Loops
Runs the contained actions once for each unit in the unit group.
Runs the contained actions once for each unit in the unit group. Use the "Picked Unit" function to refer to the unit for which the actions are being run.
Returns the current unit picked in a "Pick Each Unit In Unit Group" loop.
Useful Unit Groups
Takes one unit and creates a unit group out of it.
Returns a unit group containing all units that match the specified filters.
Returns a unit group containing all units within the alliance filter specified.
Returns an empty unit group.
Returns a unit group that contains units that have passed the specified filters from another unit group.
Returns a unit group that contains units that have passed the specified ally filters from another unit group.
Returns a unit group that contains units that have passed the specified filters from another unit group.
Returns a unit group by extracting units from a unit group belonging to the specified player.
Returns a unit group that contains units that are in a certain region from another unit group.
Returns a unit group that contains all of a player's idle units.
You must login to post a comment. Don't have an account? Register to get one!
Facts
Date created
Sep 19, 2010
Last updated
Jan 24, 2011
StarCraft and Blizzard Entertainment are both trademarks or registered trademarks of Blizzard Entertainment in the United States and/or other countries. These terms and all related materials, logos, and images are copyright © Blizzard Entertainment. This site is in no way associated with or endorsed by Blizzard Entertainment.