IsCoalitionNumber
Appearance
| 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 |
| CoalitionID | Coalition 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: | ||