Unit Group[edit | edit source]
- The Unit Group type is a special type for managing lists and groups of units. It is a dynamic list of units, as opposed to a static unit array.
Creation & Deletion[edit | edit source]
To create a unit group, there are a variety of functions available. The simplest way to create a unit group is to use the following function:
No manual deletion is necessary. StarCraft II will manage defunct unit group variables automatically.
Modification[edit | edit source]
The following actions and functions are used in a basic fashion to manage a unit group:
- Add & Remove Units: Add Unit To Unit Group/Remove Unit From Unit Group
- Merge & Separate: Add Unit Group To Unit Group/Remove Unit Group From Unit Group
- Clear & Copy: Remove All Units From Unit Group/Copy of Unit Group
Information[edit | edit source]
Type Name: unitgroup