disableConversation: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) No edit summary |
m (formatting) |
||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma2 | |game1= arma2 | ||
|1.00 | |version1= 1.00 | ||
|game2= arma2oa | |||
|version2= 1.51 | |||
|game3= tkoh | |||
|version3= 1.00 | |||
|game4= arma3 | |||
|version4= 0.50 | |||
|gr1= Radio and Chat | |gr1= Radio and Chat | ||
| In theory disables the ability to talk to other people. In actuality, if [[true]] is given, the command increases unit's [[kbTell]] | |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 <tt>isSpeaking > 0</tt>. | ||
{{Feature|Important|[[kbTell]] | {{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>}} | ||
| unitName '''disableConversation''' disable | |s1= unitName '''disableConversation''' disable | ||
|p1= unitName: [[Object]] | |p1= unitName: [[Object]] | ||
Line 17: | Line 29: | ||
|p2= disable: [[Boolean]] | |p2= disable: [[Boolean]] | ||
|[[Nothing]] | |r1= [[Nothing]] | ||
|x1= <code>[[player]] [[disableConversation]] [[true]];</code> | |||
|x2= <code>soldier1 [[disableConversation]] [[false]];</code> | |||
|x2= <code>soldier1 [[disableConversation]] [[ | |||
|seealso= [[conversationDisabled]], [[setSpeaker]], [[enableRadio]], [[enableSentences]], [[showSubtitles]] | |seealso= [[conversationDisabled]], [[setSpeaker]], [[enableRadio]], [[enableSentences]], [[showSubtitles]] | ||
}} | }} | ||
Revision as of 10:14, 20 May 2021
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.
- 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
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