Jump to content

GroupByCoalition

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (GroupByCoalition – created via PowerShell script (2025-11-11T21:12:13Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: GroupByCoalition
Function Description: Processes a group of DCS Objects and returns them in 3 embedded tables 0 for Neutral, 1 for Red and 2 for Blue
File Location: cmm.DCSFunctions.lua
Syntax: CMM.GroupByCoalition( table tbl )
Return Value: table or nil
Parameters: Name Description
tblTable of DCS Objects (must be Unit, Static Object, Airbase, Weapon)
Example: CMM.GroupByCoalition(tbl )
Example Description: Returns a table of tables matching each objects coalition
Related Functions:
Notes: Uses the new CMM.GetUnits() function