kbTell: Difference between revisions
Jump to navigation
Jump to search
BrettMayson (talk | contribs) mNo edit summary |
BrettMayson (talk | contribs) mNo edit summary |
||
Line 43: | Line 43: | ||
* [[Number]] 1-10 to force use of custom radio channel | * [[Number]] 1-10 to force use of custom radio channel | ||
* [[String]] name of radio channel to use, from: 'GLOBAL', 'SIDE', 'GROUP', 'VEHICLE', 'DIRECT', 'COMMAND' | * [[String]] name of radio channel to use, from: 'GLOBAL', 'SIDE', 'GROUP', 'VEHICLE', 'DIRECT', 'COMMAND' | ||
|r1= [[Nothing]] | |||
|x1= <sqf>player kbTell [BIS_HQ, "myTopic", "playerSentence1"];</sqf> | |x1= <sqf>player kbTell [BIS_HQ, "myTopic", "playerSentence1"];</sqf> | ||
Line 73: | Line 75: | ||
["argumentName", argumentValue], // argument 1 | ["argumentName", argumentValue], // argument 1 | ||
true]; // use radio</sqf> | true]; // use radio</sqf> | ||
|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 11:01, 27 November 2023
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
- argumentArrayN: Array - (Optional) format [argumentName, argumentValue, argumentText, argumentSpeech]:
- forceRadio: Boolean, Number or String (last value of the array) - (Optional)
- Return Value:
- Nothing
Examples
- Example 1:
- Example 2:
- 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:
Additional Information
- See also:
- Conversations kbAddTopic kbHasTopic kbReact kbRemoveTopic kbAddDatabase kbAddDatabaseTargets FSM FSM 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