AlertCoalition()
Appearance
| 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 |
| Coal | Coalition number to alert, expected values are 0 for Neutral, 1 for Red, and 2 for Blue | |
| SoundFile | Sound file to play for the coalition, if nil no sound will be played | |
| PictureFile | Picture 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: | ||