kbTell: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "[[Category:Scripting_Commands_Take_On_Helicopters" to "[[Category:Scripting Commands Take On Helicopters") |
Lou Montana (talk | contribs) (Fix description and example) |
||
Line 11: | Line 11: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Make the person tell to the receiver the sentence. See [[Conversations]] for more details. | | Make the person tell to the receiver the sentence. See [[Conversations]] for more details. |Description= | ||
|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. |Problem= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 42: | Line 43: | ||
|x2= <code>[[player]] [[kbTell]] [ | |x2= <code>[[player]] [[kbTell]] [ | ||
BIS_HQ, {{ | BIS_HQ, {{cc|to}} | ||
"Airstrike", {{ | "Airstrike", {{cc|topic}} | ||
"AirstrikeRequest", {{ | "AirstrikeRequest", {{cc|sentence}} | ||
["Team", {}, "Anvil", ["Anvil"]], {{ | ["Team", {}, "Anvil", ["Anvil"]], {{cc|argument 1}} | ||
["Location", {}, "Strelka", ["Strelka"]], {{ | ["Location", {}, "Strelka", ["Strelka"]], {{cc|argument 2}} | ||
true]; {{ | true]; {{cc|use radio}}</code> | ||
in given .bikb: | |||
<syntaxhighlight lang="cpp"> | |||
class AirstrikeRequest | class AirstrikeRequest | ||
{ | { | ||
text | text = "%team requesting close air support at grid %location "; | ||
speech[] | speech[] = { %Team, RequestingCloseAirSupportAtGrid, %Location }; | ||
class Arguments | class Arguments | ||
{ | { | ||
class Team { type | class Team { type = "simple"; }; | ||
class Location { type | class Location { type = "simple"; }; | ||
}; | }; | ||
}; | }; | ||
< | </syntaxhighlight> |Example 2= | ||
| [[Nothing]] |Return value= | | [[Nothing]] |Return value= | ||
Line 79: | Line 78: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Command Group: Conversations|{{uc:{{PAGENAME}}}}]] | [[Category:Command Group: Conversations|{{uc:{{PAGENAME}}}}]] |
Revision as of 10:57, 13 April 2020
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:
- Uncategorised
Syntax
- Syntax:
- person kbTell [receiver, topicName, sentenceClass(, argumentArray1, argumentArray2, (…), forceRadio)]
- Parameters:
- person: Object
- [receiver, topicName, sentenceClass, argumentArray1, argumentArray2, (…), forceRadio]: Array
- receiver: Object
- topicName: String
- sentenceClass: String
- argumentArray1toN (Optional): Array - [argumentName, argumentValue, argumentText, argumentSpeech]:
- forceRadio (Optional): Boolean, Number or String (last value of the array)
- 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"; }; }; };
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