Description
Make unit say given sound. The sound is defined in CfgSounds. If the unit is a person, it will also perform the corresponding lipsync effect provided an appropriate .lip file has been created for this sound.
- A dead or non-existent unit obviously cannot say anything.
- If the camera is not within given range, title is not shown and the sound will not be heard.
- See also playSound in order to play a sound wherever the camera/player is.
Note
say will mimic either say2D or say3D depending on whether it is executed in a cutscene or in a game scene.
Syntax
from say sound
Parameters:
from: Object or Array of Objectssound: String or Array- String - class name of the sound to be played. Defined in CfgSounds including Description.ext
- Array - format [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
(units player select 1) say ["whisper1", 5];
Example 2
player say "scuba_breath"; // Arma 3 vanilla sound
See also
say3D · say2D · playSound · createSoundSource · playSoundUI