BIS fnc kbTell: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<br />" to "<br>") |
Lou Montana (talk | contribs) |
||
Line 29: | Line 29: | ||
**** [[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"]) | ||
**** [[ | **** [[Boolean]] - true to play random sentence, false to play first sentence | ||
**** default - first sentence for startingSentence, last sentence for endingSentence | **** default - first sentence for startingSentence, last sentence for endingSentence | ||
* default: play everything |PARAMETER3= | * default: play everything |PARAMETER3= | ||
|p4= radioMode: [[ | |p4= radioMode: [[Boolean]], [[String]], [[Object]] or [[Code]] - (Optional, default: [[false]]) can be: | ||
* [[ | * [[Boolean]] - true to force radio | ||
* [[String]] - name of radio channel, original or [[radioChannelCreate|custom]] | * [[String]] - name of radio channel, original or [[radioChannelCreate|custom]] | ||
* [[Object]] - listener's channel | * [[Object]] - listener's channel | ||
Line 43: | Line 43: | ||
* [[Array]] - code with arguments in format [code, arguments] |PARAMETER5= | * [[Array]] - code with arguments in format [code, arguments] |PARAMETER5= | ||
|p6= speakers: [[Array]] or [[ | |p6= speakers: [[Array]] or [[Boolean]] - (Optional, default []) can be: | ||
* [[Array]] - replacement units for those defined in .bikb file (in chronological order) | * [[Array]] - replacement units for those defined in .bikb file (in chronological order) | ||
* [[ | * [[Boolean]] - 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) |PARAMETER6= | ||
|p7= soundVolume: [[Number]] - (Optional, default 0.1) music and sound volumes will be multiplied by this value when conversation starts |PARAMETER7= | |p7= soundVolume: [[Number]] - (Optional, default 0.1) music and sound volumes will be multiplied by this value when conversation starts |PARAMETER7= | ||
|p8= radioProtocol: [[ | |p8= radioProtocol: [[Boolean]] - (Optional, default [[true]]) true to disable radio protocol message while the conversation is playing |PARAMETER8= | ||
| [[Nothing]] |RETURNVALUE= | | [[Nothing]] |RETURNVALUE= |
Revision as of 00:22, 24 August 2020
Description
- Description:
- Play given sentence/conversation. Script terminates itself when conversation is finished.
Conversation must be declared in Description.ext/CfgSentences. 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, default missionName) container name (CfgSentences sub-category)
- section: Array or String - (Optional, default "") section to be played. Elements can be:
- radioMode: Boolean, String, Object or Code - (Optional, default: false) can be:
- code: Code or Array - (Optional, default
{true}
) can be: - speakers: Array or Boolean - (Optional, default []) can be:
- soundVolume: Number - (Optional, default 0.1) music and sound volumes will be multiplied by this value when conversation starts
- radioProtocol: Boolean - (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