{"name":"say","title":"say","type":"command","url":"https://community.bistudio.com/wiki/say","revid":338267,"updated":"2023-02-25T14:17:50Z","groups":["Sounds"],"status":"ok","games":{"ofp":"1.00","ofpe":"1.00","arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"ofp 1.00","arma3_since":"0.50","locality":{"argument":"global","effect":"local"},"description":"Make unit say given sound. The sound is defined in CfgSounds.\nIf the unit is a person, it will also perform the corresponding lipsync effect provided an appropriate .lip file has been created for this sound.\n\n- A dead or non-existent unit obviously cannot say anything.\n- If the camera is not within given range, title is not shown and the sound will not be heard.\n- See also playSound in order to play a sound wherever the camera/player is.\n\n> [!NOTE]\n> say will mimic either say2D or say3D depending on whether it is executed in a cutscene or in a game scene.","syntaxes":[{"syntax":"from say sound","params":[{"name":"from","type":"Object or Array of Objects","description":"Object or Array of Objects\n\n- Object - the sound source\n- Array - format [from, to]:\n  - from: Object - sound source\n  - to: Object - target","type_expr":"Object | Array<Object>","text":"from: Object or Array of Objects\n\n- Object - the sound source\n- Array - format [from, to]:\n  - from: Object - sound source\n  - to: Object - target"},{"name":"sound","type":"String or Array","description":"String or Array\n\n- String - class name of the sound to be played. Defined in CfgSounds including Description.ext\n- Array - format [sound, maxTitlesDistance, speed]:\n  - sound: String - class name of the sound to be played. Defined in CfgSounds including Description.ext\n  - maxTitlesDistance: Number (Optional, default 100) - max. distance in meters at which the sound can be heard\n  - speed: Number (Optional, default 1) - pitch of the sound","type_expr":"String | Array","text":"sound: String or Array\n\n- String - class name of the sound to be played. Defined in CfgSounds including Description.ext\n- Array - format [sound, maxTitlesDistance, speed]:\n  - sound: String - class name of the sound to be played. Defined in CfgSounds including Description.ext\n  - maxTitlesDistance: Number (Optional, default 100) - max. distance in meters at which the sound can be heard\n  - speed: Number (Optional, default 1) - pitch of the sound"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"from"},"right":{"text":"sound"}}],"examples":[{"code":["(units player select 1) say [\"whisper1\", 5];"]},{"code":["player say \"scuba_breath\"; // Arma 3 vanilla sound"]}],"see_also":["say3D","say2D","playSound","createSoundSource","playSoundUI"]}