kbTell: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <!-- Note Section [A-Z]+ -->" to "") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma2 | |game1= arma2 | ||
|version1= 1.00 | |||
|game2= arma2oa | |||
|version2= 1.50 | |||
|game3= tkoh | |||
|version3= 1.00 | |||
|game4= arma3 | |||
|version4= 0.50 | |||
|gr1= Conversations | |gr1= Conversations | ||
|arg= local | |arg= local | ||
Line 11: | Line 19: | ||
|eff= global | |eff= global | ||
| Make the person tell to the receiver the sentence. See [[Conversations]] for more details. | |descr= Make the person tell to the receiver the sentence. See [[Conversations]] for more details. | ||
|pr= Two units cannot talk on the same channel at the same time, this can lead to weird effects for non-local listeners; make sure not to use the same channel at the same time in multiplayer. [[radioChannelCreate|Custom channels]] are considered as one channel for this matter. | |pr= Two units cannot talk on the same channel at the same time, this can lead to weird effects for non-local listeners; make sure not to use the same channel at the same time in multiplayer. [[radioChannelCreate|Custom channels]] are considered as one channel for this matter. | ||
| person [[kbTell]] [receiver, topicName, sentenceClass | |s1= person [[kbTell]] [receiver, topicName, sentenceClass, argumentArray1, argumentArray2, (…), forceRadio] | ||
|p1= person: [[Object]] | |p1= person: [[Object]] | ||
|p2= | |p2= receiver: [[Object]] | ||
|p3= | |p3= topicName: [[String]] | ||
|p4= | |p4= sentenceClass: [[String]] | ||
|p5= | |p5= argumentArray1toN: [[Array]] - (Optional) format [argumentName, argumentValue, argumentText, argumentSpeech]: | ||
* argumentName: [[String]] | * argumentName: [[String]] | ||
* argumentValue: [[Code]] | * argumentValue: [[Code]] | ||
Line 33: | Line 39: | ||
* argumentSpeech: [[Array]] of [[String|Strings]] - each string is an already defined word in config. | * argumentSpeech: [[Array]] of [[String|Strings]] - each string is an already defined word in config. | ||
| | |p6= forceRadio: [[Boolean]], [[Number]] or [[String]] (''last value of the array'') - (Optional) | ||
* [[Boolean]] true/false to force use of radio | * [[Boolean]] true/false to force use of radio | ||
* [[Number]] 1-10 to force use of custom radio channel | * [[Number]] 1-10 to force use of custom radio channel | ||
Line 68: | Line 74: | ||
true]; {{cc|use radio}}</code> | true]; {{cc|use radio}}</code> | ||
| [[Nothing]] | |r1= [[Nothing]] | ||
|seealso= [[Conversations]], [[kbAddTopic]], [[kbHasTopic]], [[kbReact]], [[kbRemoveTopic]], [[kbAddDatabase]], [[kbAddDatabaseTargets]], [[FSM]], [[FSM Editor]] | |seealso= [[Conversations]], [[kbAddTopic]], [[kbHasTopic]], [[kbReact]], [[kbRemoveTopic]], [[kbAddDatabase]], [[kbAddDatabaseTargets]], [[FSM]], [[FSM Editor]] | ||
}} | }} | ||
Revision as of 14:19, 9 June 2021
Description
- Description:
- Make the person tell to the receiver the sentence. See Conversations for more details.
- Problems:
- Two units cannot talk on the same channel at the same time, this can lead to weird effects for non-local listeners; make sure not to use the same channel at the same time in multiplayer. Custom channels are considered as one channel for this matter.
- Groups:
- Conversations
Syntax
- Syntax:
- person kbTell [receiver, topicName, sentenceClass, argumentArray1, argumentArray2, (…), forceRadio]
- Parameters:
- person: Object
- receiver: Object
- topicName: String
- sentenceClass: String
- argumentArray1toN: Array - (Optional) format [argumentName, argumentValue, argumentText, argumentSpeech]:
- forceRadio: Boolean, Number or String (last value of the array) - (Optional)
- Return Value:
- Nothing
Examples
- Example 1:
player kbTell [BIS_HQ, "myTopic", "playerSentence1"];
- Example 2:
player kbTell [ BIS_HQ, // to "Airstrike", // topic "AirstrikeRequest", // sentence ["Team", {}, "Anvil", ["Anvil"]], // argument 1 ["Location", {}, "Strelka", ["Strelka"]], // argument 2 true]; // use radio
in given .bikb:class AirstrikeRequest { text = "%team requesting close air support at grid %location "; speech[] = { %Team, RequestingCloseAirSupportAtGrid, %Location }; class Arguments { class Team { type = "simple"; }; class Location { type = "simple"; }; }; };
- Example 3:
player kbTell [
BIS_HQ, // to "Airstrike", // topic "AirstrikeRequest", // sentence ["argumentName", argumentValue], // argument 1
true]; // use radio
Additional Information
- See also:
- ConversationskbAddTopickbHasTopickbReactkbRemoveTopickbAddDatabasekbAddDatabaseTargetsFSMFSM Editor
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