{"name":"disableConversation","operator":null,"title":"disableConversation","type":"command","url":"https://community.bistudio.com/wiki/disableConversation","revid":351998,"updated":"2024-02-01T23:23:59Z","groups":["Radio and Chat"],"status":"ok","replaced_by":[],"games":[{"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":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"In theory disables the ability to talk to other people. In actuality, if true is given, the command increases unit's kbTell *IsSpeaking* status by 1, thus stopping unit from having a conversation. If false is given, the command decreases unit's kbTell *IsSpeaking* status by 1. The unit \"is speaking\" if *IsSpeaking > 0*.\n\n> [!IMPORTANT]\n> kbTell *IsSpeaking* is a number that is increased or decreased by 1 internally. Default is 0, but it can be any positive or negative value. disableConversation allows to increase or decrease this number. When executed multiple times this can present an unexpected problem. Use conversationDisabled which returns true if this number > 0, to reset this number to 0 if necessary:\n>\n> ```sqf\n> while {!conversationDisabled _unit} do {_unit disableConversation true}; while {conversationDisabled _unit} do {_unit disableConversation false};\n> ```","syntaxes":[{"syntax":"unitName disableConversation disable","since":null,"effect":null,"exec":null,"params":[{"name":"unitName","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"unitName: Object"},{"name":"disable","type":"Boolean","optional":false,"default":null,"description":null,"types":["Boolean"],"since":null,"text":"disable: Boolean"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"unitName","types":["Object"]},"right":{"text":"disable","types":["Boolean"]}}],"examples":[{"text":"```sqf\nplayer disableConversation true;\n```","code":["player disableConversation true;"]},{"text":"```sqf\nsoldier1 disableConversation false;\n```","code":["soldier1 disableConversation false;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["conversationDisabled","setSpeaker","enableRadio","enableSentences","showSubtitles"],"notes":[],"categories":["Arma 2: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Radio and Chat","Introduced with Arma 2 version 1.00","Scripting Commands","Take On Helicopters: Scripting Commands"]}