setSoundEffect: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 16: | Line 16: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| trigger '''setSoundEffect''' [sound, voice, soundEnv, soundDet] |= Syntax | | trigger '''setSoundEffect''' ["sound", "voice", "soundEnv", "soundDet"] |= Syntax | ||
|p1= trigger: [[Object]] |= Parameter 1 | |p1= trigger: [[Object]] |= Parameter 1 | ||
|p2= [sound, voice, soundEnv, soundDet]: [[Array]]|= Parameter 2 | |p2= [sound, voice, soundEnv, soundDet]: [[String]][[Array]]|= Parameter 2 | ||
| [[Nothing]] |= Return value | | [[Nothing]] |= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|s2= | |s2= [[Waypoint]] '''setSoundEffect''' [sound, voice, soundEnv, soundDet] |= Syntax | ||
|p21= | |p21= [[Waypoint]]: [[Array]] |= Parameter 1 | ||
|p22= [sound, voice, soundEnv, soundDet]: [[Array]]|= Parameter 2 | |p22= [sound, voice, soundEnv, soundDet]: [[String]][[Array]]|= Parameter 2 | ||
|r2= [[Nothing]] |= Return value | |r2= [[Nothing]] |= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <pre> | |x1= <pre>_trigger setSoundEffect ["Alarm", "", "", ""]</pre> |= Example 1 | ||
|x1= <pre> [_group1,2] setSoundEffect ["Alarm", "", "", ""]</pre> |= Example 1 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 10:42, 31 August 2007
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 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:
[_group1,2] 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