disableConversation: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]2(\|.*)\]\]" to "{{GameCategory|arma2|Scripting Commands}}")
m (Text replacement - "{{Feature|Important|" to "{{Feature|important|")
 
(44 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma2 |Game name=
|game1= arma2
|version1= 1.00


|1.00|Game version=
|game2= arma2oa
|version2= 1.50


|gr1= Radio and Chat |GROUP1=
|game3= tkoh
____________________________________________________________________________________________
|version3= 1.00


| Disable the ability to talk to other people. |DESCRIPTION=
|game4= arma3
____________________________________________________________________________________________
|version4= 0.50


| unitName '''disableConversation''' disable |SYNTAX=
|gr1= Radio and Chat


|p1= unitName: [[Object]] |PARAMETER1=
|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:
<sqf>while {!conversationDisabled _unit} do {_unit disableConversation true}; while {conversationDisabled _unit} do {_unit disableConversation false};</sqf>}}


|p2= disable: [[Boolean]] |PARAMETER2=
|s1= unitName [[disableConversation]] disable


|p3= |PARAMETER3=  
|p1= unitName: [[Object]]


|[[Nothing]] |RETURNVALUE=
|p2= disable: [[Boolean]]


|r1= [[Nothing]]


|x1= <code>[[player]] [[disableConversation]] [[true]]</code>|EXAMPLE1=
|x1= <sqf>player disableConversation true;</sqf>
|x2= <code>soldier1 [[disableConversation]] [[true]]</code>|EXAMPLE2=


____________________________________________________________________________________________
|x2= <sqf>soldier1 disableConversation false;</sqf>


| [[setSpeaker]], [[enableRadio]], [[enableSentences]], [[showSubtitles]] |SEEALSO=
|seealso= [[conversationDisabled]] [[setSpeaker]] [[enableRadio]] [[enableSentences]] [[showSubtitles]]
 
|  |MPBEHAVIOUR=
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<dd class="notedate">Posted on July 10, 2009 - 23:28 (CEST)
<dt class="note">[[User:Lou Montana|Lou Montana]]
<dd class="note">
Note that this will also prevent you from using group radio.<br>
If you just want player unable to speak to others (or one particular soldier),<br>
use <code>player [[setVariable]] ["BIS_noCoreConversations", true];</code>
<br>
or, for the other soldier,
<code>unitName [[setVariable]] ["BIS_noCoreConversations", true];</code>
<dd class="notedate">Posted on August 18, 2010 - 21:24 (CEST)
<dt class="note">[[User:Lou Montana|Lou Montana]]
<dd class="note">
My previous note is incorrect now, you can use '''disableConversation''' and still use the group radio, at least in A2:OA !
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 01:23, 2 February 2024

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