GetGroupNames
Appearance
| 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 |
| GroupList | Table of Group Objects. | |
| Sort | If 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: | ||