BIS fnc kbTell: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Add CfgSentences information, fix example, fix default values) |
m (template:command argument fix) |
||
Line 14: | Line 14: | ||
| Play given sentence/conversation. Script terminates itself when conversation is finished.<br /> | | Play given sentence/conversation. Script terminates itself when conversation is finished.<br /> | ||
Conversation must be declared in [[Description.ext#CfgSentences|Description.ext/CfgSentences]]. | Conversation must be declared in [[Description.ext#CfgSentences|Description.ext/CfgSentences]]. | ||
{{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.}} |= | {{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] spawn [[BIS_fnc_kbTell]] |= | | [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 52: | Line 52: | ||
|p8= radioProtocol: [[Bool]] - (Optional, default [[true]]) true to disable radio protocol message while the conversation is playing |= Parameter 8 | |p8= radioProtocol: [[Bool]] - (Optional, default [[true]]) true to disable radio protocol message while the conversation is playing |= Parameter 8 | ||
| [[Nothing]] |= | | [[Nothing]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 58: | Line 58: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[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]] |= | | [[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]] |SEEALSO= | ||
|exec= spawn |= | |exec= spawn |= |
Revision as of 11:29, 7 April 2019
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: Bool, String, Object or Code - (Optional, default: false) can be:
- code: Code or Array - (Optional, default
{true}
) can be: - speakers: Array or Bool - (Optional, default []) 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