BIS fnc kbTell: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
Lou Montana (talk | contribs) (Page formatting) |
||
Line 8: | Line 8: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Plays conversation. Script terminates itself when conversation is finished. |= Description | ||
____________________________________________________________________________________________ | |||
| [topic, container, section, radioMode, code, speakers, soundVolume, radioProtocol] call [[BIS_fnc_kbTell]] |= Syntax | |||
|p1= topic: [[String]] - topic name |= Parameter 1 | |||
|p2= container: [[String]] - (Optional) container name (default: current mission ID) |= Parameter 2 | |||
|p3= section: [[Array]] - (Optional) section to be played. Elements can be: | |||
* [[String]] - "variant" - play specific variant | |||
* [[Array]] | |||
** [startingSentence(, endingSentence)] - play all sentences between specific start and end | |||
*** startingSentence can be in format: | |||
**** [[String]] - full sentence name (example: "04_intro_team_PLA_0") | |||
**** [[Array]] - [<actorID>(, <sentenceID>)] (example: ["PLA", 0] or just ["PLA_0"]) | |||
**** [[Bool]] - true to play random sentence, false to play first sentence | |||
**** default - first sentence | |||
*** endingSentence can be in format: | |||
**** [[String]] - full sentence name (example: "04_intro_team_PLA_0") | |||
**** [[Array]] - [<actorID>(, <sentenceID>)] (example: ["PLA", 0] or just ["PLA_0"]) | |||
**** [[Bool]] - true to play only one sentence, false if continue to last sentence | |||
**** default - last sentence | |||
* default: play everything |= Parameter 3 | |||
|p4= radioMode: [[Bool]], [[String]], [[Object]] or [[Code]] - (Optional) can be: | |||
* [[Bool]] - true to force radio | |||
* [[String]] - name of custom radio channel | |||
* [[Object]] - listener's channel | |||
* [[Code]] - returned value of code |= Parameter 4 | |||
|p5= code: [[Code]] or [[Array]] - (Optional, default: {}) can be: | |||
* [[Code]] - executed at the start of every sentence (arguments are same as in kbAddTopic event handler) | |||
* | * [[Array]] - code with arguments in format [code, arguments] |= Parameter 5 | ||
|p6= speakers: [[Array]] or [[Bool]] - (Optional) can be: | |||
* [[Array]] - replacement units for those defined in .bikb file (in chronological order) | |||
* [[Bool]] - when true, dummy logics will be created for all actor units which doesn't exist (default: false or value of 'bis_fnc_kbTell_createDummy' variable) |= Parameter 6 | |||
| | |p7= soundVolume: [[Number]] - (Optional, default: 0.1) music and sound volumes will be multiplied by this value when conversation starts |= Parameter 7 | ||
| | |p8= radioProtocol: [[Bool]] - (Optional, default: true) true to disable radio protocol message while the conversation is playing |= Parameter 8 | ||
| |= Return value | | [[Nothing]] |= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 16:15, 30 March 2018
Description
- Description:
- Plays conversation. Script terminates itself when conversation is finished.
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- [topic, container, section, radioMode, code, speakers, soundVolume, radioProtocol] call 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
- Example 1:
Additional Information
- See also:
- See also needed
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