Description
Plays given sound in 2D.
Syntax
from say2D sound
Parameters:
from: One ofsound: One of- String - class name of the sound to be played. Defined in CfgSounds including Description.ext
- Array with [sound, maxTitlesDistance, speed]
- sound: String - class name of the sound to be played. Defined in CfgSounds including Description.ext
- maxTitlesDistance: Number (Optional, default 100) - max. distance in meters at which the sound can be heard
- speed: Number (Optional, default 1) - pitch of the sound
Returns: Nothing
Examples
Example 1
player say2D "HelloThere";
Example 2
[player, _officer] say2D ["HelloThere", 50, 0.9];
See also
say · say3D · playSound · createSoundSource · playSoundUI