setSoundEffect: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 3: Line 3:
[[Category:Scripting Commands ArmA|SETSOUNDEFFECT]]
[[Category:Scripting Commands ArmA|SETSOUNDEFFECT]]


<new command not populated>


<h2 style="color:#000066">'''''trigger or waypoint'' setSoundEffect ''[sound, voice, soundEnv, soundDet]'''''</h2>


<h2 style="color:#000066">''''' setSoundEffect '''''</h2>


'''Operand types:'''


'''Operand types:'''
'''trigger or waypoint:''' [[Object]] or [[Array]]
 
'''[sound, voice, soundEnv, soundDet]:''' [[Array]]


'''Type of returned value:'''
'''Type of returned value:'''
[[Nothing]]


'''Compatibility:'''
'''Compatibility:'''
Version 1.86 required.


'''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.


'''Example:'''
'''Example:'''
trigger '''setSoundEffect''' ["Alarm", "", "", ""]

Revision as of 16:10, 4 July 2006


trigger or waypoint setSoundEffect [sound, voice, soundEnv, soundDet]


Operand types:

trigger or waypoint: Object or Array

[sound, voice, soundEnv, soundDet]: Array

Type of returned value:

Nothing

Compatibility:

Version 1.86 required.

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.

Example:

trigger setSoundEffect ["Alarm", "", "", ""]