Jump to content

IsCoalitionNumber

From CMM Wiki
Return to CMM Command Reference
Environment: Mission Scripting
Function: IsCoalitionNumber
Function Description: Determines whether the supplied coalition ID is one of the valid DCS sides (NEUTRAL, RED, or BLUE).
File Location: cmm.DCSFunctions.lua
Syntax: CMM.IsCoalitionNumber( number: CoalitionID )
Return Value:
Parameters: Name Description
CoalitionIDCoalition number
Example: local ok = CMM.IsCoalitionNumber(coalition.side.RED)
Example Description: Returns true if the argument is a valid coalition side; otherwise false.
Related Functions:
Notes: