BIS fnc kbTell: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Page formatting) |
Lou Montana (talk | contribs) m (Add examples and See also) |
||
Line 6: | Line 6: | ||
|1.00|= Game version | |1.00|= Game version | ||
|arg= glob |= argument | |||
|eff= glob |= effect | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Play given sentence/conversation. Script terminates itself when conversation is finished. | ||
{{note|This function can also be executed with [[call]]. Doing so will make it internally [[spawn]] since it needs to be able suspend its execution.}} |= Description | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [topic, container, section, radioMode, code, speakers, soundVolume, radioProtocol] | | [topic, container, section, radioMode, code, speakers, soundVolume, radioProtocol] spawn [[BIS_fnc_kbTell]] |= Syntax | ||
|p1= topic: [[String]] - topic name |= Parameter 1 | |p1= topic: [[String]] - topic name |= Parameter 1 | ||
Line 21: | Line 26: | ||
* [[Array]] | * [[Array]] | ||
** [startingSentence(, endingSentence)] - play all sentences between specific start and end | ** [startingSentence(, endingSentence)] - play all sentences between specific start and end | ||
*** startingSentence can be in format: | *** startingSentence and endingSentence can be in format: | ||
**** [[String]] - full sentence name (example: "04_intro_team_PLA_0") | **** [[String]] - full sentence name (example: "04_intro_team_PLA_0") | ||
**** [[Array]] - [<actorID>(, <sentenceID>)] (example: ["PLA", 0] or just ["PLA_0"]) | **** [[Array]] - [<actorID>(, <sentenceID>)] (example: ["PLA", 0] or just ["PLA_0"]) | ||
**** [[Bool]] - true to play random sentence, false to play first sentence | **** [[Bool]] - true to play random sentence, false to play first sentence | ||
**** default - first sentence | **** default - first sentence for startingSentence, last sentence for endingSentence | ||
* default: play everything |= Parameter 3 | * default: play everything |= Parameter 3 | ||
|p4= radioMode: [[Bool]], [[String]], [[Object]] or [[Code]] - (Optional) can be: | |p4= radioMode: [[Bool]], [[String]], [[Object]] or [[Code]] - (Optional) can be: | ||
* [[Bool]] - true to force radio | * [[Bool]] - true to force radio | ||
* [[String]] - name of | * [[String]] - name of radio channel, original or [[radioChannelCreate|custom]] | ||
* [[Object]] - listener's channel | * [[Object]] - listener's channel | ||
* [[Code]] - returned value of code |= Parameter 4 | * [[Code]] - returned value of code |= Parameter 4 | ||
Line 54: | Line 54: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code></code> |= | |x1= <code>["01_Wave", "A_in", [[nil]], "SIDE", [[nil]], [[nil]], 1, [[false]]] [[call]] [[BIS_fnc_kbTell]];</code> |= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| |= See also | | [[Conversations]], [[kbTell]], [[BIS_fnc_kbCanSpeak]], [[BIS_fnc_kbCreateDummy]], [[BIS_fnc_kbIsSpeaking]], [[BIS_fnc_kbMenu]], [[BIS_fnc_kbPriority]], [[BIS_fnc_kbSentence]], [[BIS_fnc_kbSkip]], [[BIS_fnc_kbTellLocal]], [[BIS_fnc_kbTopicConfig]] |= See also | ||
|exec= spawn |= | |||
}} | }} |
Revision as of 00:07, 4 April 2018
Description
- Description:
- Play given sentence/conversation. Script terminates itself when conversation is finished. Template:note
- Execution:
- spawn
- Groups:
- Uncategorised
Syntax
- Syntax:
- [topic, container, section, radioMode, code, speakers, soundVolume, radioProtocol] spawn BIS_fnc_kbTell
- Parameters:
- topic: String - topic name
- container: String - (Optional) container name (default: current mission ID)
- section: Array - (Optional) section to be played. Elements can be:
- radioMode: Bool, String, Object or Code - (Optional) can be:
- code: Code or Array - (Optional, default: {}) can be:
- speakers: Array or Bool - (Optional) can be:
- soundVolume: Number - (Optional, default: 0.1) music and sound volumes will be multiplied by this value when conversation starts
- radioProtocol: Bool - (Optional, default: true) true to disable radio protocol message while the conversation is playing
- Return Value:
- Nothing
Examples
Additional Information
- See also:
- ConversationskbTellBIS_fnc_kbCanSpeakBIS_fnc_kbCreateDummyBIS_fnc_kbIsSpeakingBIS_fnc_kbMenuBIS_fnc_kbPriorityBIS_fnc_kbSentenceBIS_fnc_kbSkipBIS_fnc_kbTellLocalBIS_fnc_kbTopicConfig
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