disableConversation: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *s([0-9]) *= ([^ ]+)? ?'''([a-zA-Z0-9_]+)''' ?([^ ]+)? " to " |s$1= $2 $3 $4 ") |
Lou Montana (talk | contribs) m (Text replacement - "{{Feature|Important|" to "{{Feature|important|") |
||
(19 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
|game1= arma2 | |game1= arma2 | ||
|version1= 1.00 | |version1= 1.00 | ||
|game2= arma2oa | |game2= arma2oa | ||
|version2= 1.50 | |||
|version2= 1. | |||
|game3= tkoh | |game3= tkoh | ||
|version3= 1.00 | |version3= 1.00 | ||
|game4= arma3 | |game4= arma3 | ||
|version4= 0.50 | |version4= 0.50 | ||
Line 20: | Line 16: | ||
|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| | {{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>}} | ||
|s1= unitName [[disableConversation]] disable | |s1= unitName [[disableConversation]] disable | ||
Line 31: | Line 27: | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>player disableConversation true;</sqf> | ||
|x2= < | |x2= <sqf>soldier1 disableConversation false;</sqf> | ||
|seealso= [[conversationDisabled]] | |seealso= [[conversationDisabled]] [[setSpeaker]] [[enableRadio]] [[enableSentences]] [[showSubtitles]] | ||
}} | }} |
Latest revision as of 00:23, 2 February 2024
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:
- Example 2:
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