setSoundEffect
From Bohemia Interactive Community
| Editors, please check Policy: Scripting Command Page Syntax. |
Click on the images for descriptions
Introduced in
- Game:
- Armed Assault
- Version:
- 1.00
Description
- Description:
- Defines the different sound effects.
Sound / voice plays a 2D / 3D sound from CfgSounds.
SoundEnv plays an enviromental sound from CfgEnvSounds.
SoundDet (only for triggers) creates a dynamic sound object attached to a trigger defined in CfgSFX.
Syntax
- Syntax:
- trigger setSoundEffect ["sound", "voice", "soundEnv", "soundDet"]
- Parameters:
- trigger: Object
- [sound, voice, soundEnv, soundDet]: StringArray
- Return Value:
- Nothing
Alternative Syntax
- Syntax:
- Waypoint setSoundEffect ["sound", "voice", "soundEnv", "soundDet"]
- Parameters:
- Waypoint: Array
- [sound, voice, soundEnv, soundDet]: StringArray
- Return Value:
- Nothing
Examples
- Example 1:
_trigger setSoundEffect ["Alarm", "", "", ""]
- Example 2:
[_group1,2] setSoundEffect ["Alarm", "", "", ""]
Additional Information
- Multiplayer:
- Behaviour unknown.

