setSoundEffect: Difference between revisions
Jump to navigation
Jump to search
(add. classification) |
carlgustaffa (talk | contribs) (Added a third example to show how you need a dummy sound when using soundDet for triggers, or you will get an error message that will throw most people off from using it.) |
||
Line 36: | Line 36: | ||
|x1= <pre>_trigger setSoundEffect ["Alarm", "", "", ""]</pre> |= Example 1 | |x1= <pre>_trigger setSoundEffect ["Alarm", "", "", ""]</pre> |= Example 1 | ||
|x2= <pre> [_group1,2] setSoundEffect ["Alarm", "", "", ""]</pre> |= Example 2 | |x2= <pre> [_group1,2] setSoundEffect ["Alarm", "", "", ""]</pre> |= Example 2 | ||
|x3= <pre>_trigger setSoundEffect ["NoSound", "", "", "MySound"]; //NoSound = cfgSound dummy (no sound file), MySound = cfgSFX sound effect.</pre> |= Example 3 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 23:57, 5 October 2010
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]: Array of strings
- Return Value:
- Nothing
Alternative Syntax
- Syntax:
- waypoint setSoundEffect [sound, voice, soundEnv, soundDet]
- Parameters:
- waypoint: Array - format Waypoint
- [sound, voice, soundEnv, soundDet]: Array of strings
- Return Value:
- Nothing
Examples
- Example 1:
_trigger setSoundEffect ["Alarm", "", "", ""]
- Example 2:
[_group1,2] setSoundEffect ["Alarm", "", "", ""]
- Example 3:
_trigger setSoundEffect ["NoSound", "", "", "MySound"]; //NoSound = cfgSound dummy (no sound file), MySound = cfgSFX sound effect.
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