{"name":"say","operator":null,"title":"say","type":"command","url":"https://community.bistudio.com/wiki/say","revid":338267,"updated":"2023-02-25T14:17:50Z","groups":["Sounds"],"status":"ok","replaced_by":[],"games":[{"game":"ofp","name":"Operation Flashpoint","version":"1.00"},{"game":"ofpe","name":"Operation Flashpoint: Elite","version":"1.00"},{"game":"arma1","name":"Armed Assault","version":"1.00"},{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"ofp","name":"Operation Flashpoint","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":"global","effect":"local","server_exec":false},"exec":null,"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","since":null,"effect":null,"exec":null,"params":[{"name":"from","type":"Object or Array of Objects","optional":false,"default":null,"description":"Object or Array of Objects\n- Object - the sound source\n- Array - format [from, to]:\n  - from: Object - sound source\n  - to: Object - target","types":["Object","Array"],"since":null,"text":"from: Object or Array of Objects\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","optional":true,"default":"100","description":"String or Array\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  - max. distance in meters at which the sound can be heard\n  - speed: Number (Optional, default 1) - pitch of the sound","types":["String","Array"],"since":null,"text":"sound: String or Array\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","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"from","types":["Object","Array"]},"right":{"text":"sound","types":["String","Array"]}}],"examples":[{"text":"```sqf\n(units player select 1) say [\"whisper1\", 5];\n```","code":["(units player select 1) say [\"whisper1\", 5];"]},{"text":"```sqf\nplayer say \"scuba_breath\"; // Arma 3 vanilla sound\n```","code":["player say \"scuba_breath\"; // Arma 3 vanilla sound"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["say3D","say2D","playSound","createSoundSource","playSoundUI"],"notes":[],"categories":["ArmA: Armed Assault: Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Sounds","Introduced with Operation Flashpoint version 1.00","Operation Flashpoint: Elite: Scripting Commands","Operation Flashpoint: New Scripting Commands","Operation Flashpoint: Scripting Commands","Scripting Commands","Scripting Commands: Local Effect","Take On Helicopters: Scripting Commands"]}