GetUnitsInGroups
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | GetUnitsInGroups | |
| Function Description: | Returns a table of units from a list of group objects. | |
| File Location: | cmm.DCSFunctions.lua | |
| Syntax: | CMM.GetUnitsInGroups( table Groups ) | |
| Return Value: | table | |
| Parameters: | Name | Description |
| Groups | Table of group objects | |
| Example: | CMM.GetUnitsInGroups({group1, group2}) | |
| Example Description: | Extracts all active units from the provided group objects. Returns a table of unit tables if valid groups are supplied; otherwise returns an empty table. | |
| Related Functions: | ||
| Notes: | --TODO Function is in MVP state, needs finalizing | |