setSoundEffect: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|SETSOUNDEFFECT]]
{{Command|= Comments
[[Category:Scripting Commands OFP Elite |SETSOUNDEFFECT]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|SETSOUNDEFFECT]]


| ofpr |= Game name


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


| 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. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| trigger or waypoint '''setSoundEffect''' [sound, voice, soundEnv, soundDet] |= Syntax


'''trigger or waypoint:''' [[Object]] or [[Array]]
|p1= trigger or waypoint: [[Object]] |= Parameter 1


'''[sound, voice, soundEnv, soundDet]:''' [[Array]]
|p2= [sound, voice, soundEnv, soundDet]: [[Array]] |= Parameter 2


'''Type of returned value:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>trigger setSoundEffect ["Alarm", "", "", ""]</pre> |= Example 1
____________________________________________________________________________________________


[[Nothing]]
|  |= See also


'''Compatibility:'''
}}


Version 1.86 required.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


Defines the different sound effects.
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|SETSOUNDEFFECT]]
Sound / voice plays a 2D / 3D sound from CfgSounds.
[[Category:Scripting Commands OFP Elite |SETSOUNDEFFECT]]
 
[[Category:Scripting Commands ArmA|SETSOUNDEFFECT]]
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", "", "", ""]

Revision as of 00:29, 2 August 2006

Hover & click on the images for description

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.
Groups:
Uncategorised

Syntax

Syntax:
trigger or waypoint setSoundEffect [sound, voice, soundEnv, soundDet]
Parameters:
trigger or waypoint: Object
[sound, voice, soundEnv, soundDet]: Array
Return Value:
Nothing

Examples

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

Additional Information

See also:
See also needed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section