OutSoundForCoalition: Difference between revisions
Appearance
Ozdeadmeat (talk | contribs) m outSoundForCoalition – created via PowerShell script (2025-11-11T21:12:38Z) |
Ozdeadmeat (talk | contribs) m outSoundForCoalition – created via PowerShell script (2026-02-11T01:16:35Z) Tag: Manual revert |
| (3 intermediate revisions by the same user not shown) | |
(No difference)
| |
Latest revision as of 14:16, 10 February 2026
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | outSoundForCoalition | |
| Function Description: | Plays a randomly selected sound from a table or a single sound string, with support for both string and table inputs. If a table is provided, a random entry is chosen; if a string is provided, that sound is played directly. | |
| File Location: | cmm.soundFunctions.lua | |
| Syntax: | CMM.outSoundForCoalition( table or string SOUND ) | |
| Return Value: | nil | |
| Parameters: | Name | Description |
| SOUND | REQUIRED, either a string path to a sound file or a table of sound file paths. If a table, a random entry is selected; if a string, the sound is played directly. | |
| Example: | CMM.outSoundForCoalition({"SOUNDS/CMM/XP_Banked_1.ogg", "SOUNDS/CMM/XP_Banked_2.ogg"}) | |
| Example Description: | Plays a randomly selected sound from the provided list of sound files, simulating a banked event with varied audio feedback. | |
| Related Functions: | ||
| Notes: | ||