Jump to content

AlertPlayers()

From CMM Wiki
Revision as of 12:26, 24 June 2026 by Ozdeadmeat (talk | contribs) (AlertPlayers() – 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: AlertPlayers()
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.AlertPlayers()( table: PlyrUnitList , string or table or nil SoundFile , string or nil PictureFile )
Return Value: nil
Parameters: Name Description
PlyrUnitListvec3 table of the point you want to search around
SoundFileSound file to play for the players, 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.AlertPlayers(PlyrUnitList , "YouCantParkThereSir.ogg", "QuestionMark.png")
Example Description: Will play the "YouCantParkThereSir.ogg" sound and display the "QuestionMark.png" image to all players in the provided Player Unit List (PlyrUnitList)
Related Functions:
Notes: