Jump to content

GroupByCoalition

From CMM Wiki
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