{"name":"setSpeaker","operator":null,"title":"setSpeaker","type":"command","url":"https://community.bistudio.com/wiki/setSpeaker","revid":364908,"updated":"2024-06-30T09:06:33Z","groups":["Unit Identity","Sounds"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.02"}],"since":{"game":"arma3","name":"Arma 3","version":"1.02"},"arma3_since":"1.02","branch":null,"locality":{"argument":"global","effect":"local","server_exec":false},"exec":null,"description":"Sets the speaker of a person.","syntaxes":[{"syntax":"person setSpeaker speaker","since":null,"effect":null,"exec":null,"params":[{"name":"person","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"person: Object"},{"name":"speaker","type":"String","optional":false,"default":null,"description":"the used voice type, see Arma 3 Speakers","types":["String"],"since":null,"text":"speaker: String - the used voice type, see Arma 3 Speakers"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"person","types":["Object"]},"right":{"text":"speaker","types":["String"]}}],"examples":[{"text":"```sqf\nunit1 setSpeaker \"Male02GRE\";\n```","code":["unit1 setSpeaker \"Male02GRE\";"]}],"multiplayer":"The command needs to run on every computer with exactly the same arguments, otherwise the speaking unit could appear silent on other PCs.","problems":null,"aliases":[],"see_also":["speaker","disableConversation","enableRadio","enableSentences","showSubtitles","setIdentity","setFace","hasCustomFace"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Sounds","Command Group: Unit Identity","Introduced with Arma 3 version 1.02","Scripting Commands","Scripting Commands: Local Effect"]}