Jump to content

GetUnitsInGroups

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (GetUnitsInGroups – created via PowerShell script (2025-11-11T21:12:10Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
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
GroupsTable 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