disableConversation: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) No edit summary |
Killzone Kid (talk | contribs) No edit summary |
||
Line 7: | Line 7: | ||
|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]] `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 the `IsSpeaking` > 0. | | 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 the `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: | |||
<code>[[while]] {![[conversationDisabled]] _unit} [[do]] {_unit [[disableConversation]] [[true]]}; [[while]] {[[conversationDisabled]] _unit} [[do]] {_unit [[disableConversation]] [[false]]};</code>}} | |||
| unitName '''disableConversation''' disable | | unitName '''disableConversation''' disable | ||
Line 20: | Line 22: | ||
|x2= <code>soldier1 [[disableConversation]] [[true]]</code> | |x2= <code>soldier1 [[disableConversation]] [[true]]</code> | ||
|seealso= [[setSpeaker]], [[enableRadio]], [[enableSentences]], [[showSubtitles]] | |seealso= [[conversationDisabled]], [[setSpeaker]], [[enableRadio]], [[enableSentences]], [[showSubtitles]] | ||
}} | }} | ||
Revision as of 13:02, 16 May 2021
Description
- Description:
- Description needed
- Groups:
- Radio and Chat
Syntax
- Syntax:
- Syntax needed
- Parameters:
- unitName: Object
- disable: Boolean
- Return Value:
- Return value needed
Examples
- Example 1:
player disableConversation true
- Example 2:
soldier1 disableConversation true
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