Arma 3 Scripting

Command in Radio and Chat

disableConversation

Also available as Markdown and JSON, or read the original wiki page.

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.

Important

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:

while {!conversationDisabled _unit} do {_unit disableConversation true}; while {conversationDisabled _unit} do {_unit disableConversation false};

Syntax

unitName disableConversation disable

Parameters:

Returns: Nothing

Examples

Example 1

player disableConversation true;

Example 2

soldier1 disableConversation false;

See also

conversationDisabled · setSpeaker · enableRadio · enableSentences · showSubtitles