Jump to content

IsCountryID

From CMM Wiki
Revision as of 12:26, 24 June 2026 by Ozdeadmeat (talk | contribs) (IsCountryID – created via PowerShell script (2026-06-24T22:26:45Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: IsCountryID
Function Description: CMM varient of trigger.action.outTextForGroup that uses an argTable
File Location: cmm.DCSFunctions.lua
Syntax: CMM.IsCountryID( number CountryID )
Return Value: boolean
Parameters: Name Description
CountryIDA number corresponding to a DCS Country ID (found in country.id table)
Example: CMM.IsCountryID(82)
Example Description: This would return true as 82 is the Country ID for the United Nations in DCS, if you supplied a number that does not match a valid Country ID in DCS it would return false and write a warning to the log
Related Functions:
Notes: