Jump to content

AlertCoalition()

From CMM Wiki
Revision as of 12:26, 24 June 2026 by Ozdeadmeat (talk | contribs) (AlertCoalition() – created via PowerShell script (2026-06-24T22:26:46Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: AlertCoalition()
Function Description: This function is designed to play a sound and display a picture for in the provided Player Unit List (PlyrUnitList)
File Location: cmm.DCSFunctions.lua
Syntax: CMM.AlertCoalition()( number Coal , string or table or nil SoundFile , string or nil PictureFile )
Return Value: nil
Parameters: Name Description
CoalCoalition number to alert, expected values are 0 for Neutral, 1 for Red, and 2 for Blue
SoundFileSound file to play for the coalition, if nil no sound will be played
PictureFilePicture file, function uses default CMM.PICTURE.ALERT settings for picture display, if nil no picture will be displayed
Example: CMM.AlertCoalition(2, "YouCantParkThereSir.ogg", "QuestionMark.png")
Example Description: Will play the "YouCantParkThereSir.ogg" sound and display the "QuestionMark.png" image to all players in the blue coalition
Related Functions:
Notes: