setSoundEffect

From Bohemia Interactive Community

Jump to: navigation, search
Editors, please check Policy: Scripting Command Page Syntax.
Introduced in Armed Assault version 1.00

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.

Notes

Notes

+ Add Note

Only post proven facts here. Use the talk page or the forums for discussions.

Notes

Bottom Section

Personal tools
Buy ArmA now!