BIS fnc kbTopicConfig: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| tkoh | | tkoh | ||
|1.00 | |1.00 | ||
|gr1 = Conversations | |gr1 = Conversations | ||
| Reads the [[Config|configs]] to return a matching <tt>config [[config greater greater name|>>]] [[Description.ext#CfgSentences|CfgSentences]] [[config greater greater name|>>]] missionName [[config greater greater name|>>]] topic</tt> entry. | | Reads the [[Config|configs]] to return a matching <tt>config [[config greater greater name|>>]] [[Description.ext#CfgSentences|CfgSentences]] [[config greater greater name|>>]] missionName [[config greater greater name|>>]] topic</tt> entry. | ||
{{Informative | [[Config]]s are checked in that order: [[configFile]], [[campaignConfigFile]], [[missionConfigFile]].}} | {{Informative | [[Config]]s are checked in that order: [[configFile]], [[campaignConfigFile]], [[missionConfigFile]].}} | ||
{{Important | This function is intended to be used by [[BIS_fnc_kbTell]] only.}} | {{Important | This function is intended to be used by [[BIS_fnc_kbTell]] only.}} | ||
| [missionName, topic] call [[BIS_fnc_kbTopicConfig]] | | [missionName, topic] call [[BIS_fnc_kbTopicConfig]] | ||
|p1= missionName: [[String]] | |p1= missionName: [[String]] | ||
|p2= topic: [[String]] | |p2= topic: [[String]] | ||
| [[Config]] - the topic's config entry. [[nil]] on error or not found | | [[Config]] - the topic's config entry. [[nil]] on error or not found | ||
|x1= <code>[[private]] _configTopic = ["missionName", "topic"] [[call]] [[BIS_fnc_kbTopicConfig]];</code> | |x1= <code>[[private]] _configTopic = ["missionName", "topic"] [[call]] [[BIS_fnc_kbTopicConfig]];</code> | ||
| [[Conversations]] [[BIS_fnc_kbTell]] | | [[Conversations]] [[BIS_fnc_kbTell]] | ||
}} | }} | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:{{Name|arma3}}: Functions|{{uc:kbTopicConfig}}]] | [[Category:{{Name|arma3}}: Functions|{{uc:kbTopicConfig}}]] |
Revision as of 23:11, 17 January 2021
Description
- Description:
- Reads the configs to return a matching config >> CfgSentences >> missionName >> topic entry.
- Execution:
- call
- Groups:
- Conversations
Syntax
- Syntax:
- [missionName, topic] call BIS_fnc_kbTopicConfig
- Parameters:
- missionName: String
- topic: String
- Return Value:
- Config - the topic's config entry. nil on error or not found
Examples
- Example 1:
private _configTopic = ["missionName", "topic"] call BIS_fnc_kbTopicConfig;
Additional Information
- See also:
- Conversations BIS_fnc_kbTell
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