Jump to content

GetGroupNames

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (GetGroupNames – created via PowerShell script (2025-11-11T21:12:09Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: GetGroupNames
Function Description: Returns a list of the names of all groups in the supplied table.
File Location: cmm.DCSFunctions.lua
Syntax: CMM.GetGroupNames( table GroupList , boolean Sort )
Return Value: table or nil
Parameters: Name Description
GroupListTable of Group Objects.
SortIf true, the returned list is sorted alphabetically; otherwise order matches input.
Example: CMM.GetGroupNames(coalition.getGroups(coalition.side.RED , Group.Category.GROUND),true)
Example Description: Returns a table of group names from the supplied list, optionally sorted alphabetically.
Related Functions:
Notes: