disableConversation: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>")
m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>")
Line 17: Line 17:
|descr= 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''.  
|descr= 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''.  
{{Feature|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:  
{{Feature|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:  
<code>while {!conversationDisabled _unit} do {_unit disableConversation true}; while {conversationDisabled _unit} [[do]] {_unit [[disableConversation]] [[false]]};</code>}}  
<code>while {!conversationDisabled _unit} do {_unit disableConversation true}; while {conversationDisabled _unit} do {_unit [[disableConversation]] [[false]]};</code>}}  


|s1= unitName [[disableConversation]]  disable
|s1= unitName [[disableConversation]]  disable

Revision as of 11:14, 12 May 2022

Hover & click on the images for description

Description

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.
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};
Groups:
Radio and Chat

Syntax

Syntax:
unitName disableConversation disable
Parameters:
unitName: Object
disable: Boolean
Return Value:
Nothing

Examples

Example 1:
player disableConversation true;
Example 2:
soldier1 disableConversation false;

Additional Information

See also:
conversationDisabled setSpeaker enableRadio enableSentences showSubtitles

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note