BIS fnc kbTopicConfig: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Remove note template usage) |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| tkoh |Game name= | | tkoh |Game name= | ||
Line 7: | Line 6: | ||
|gr1 = Conversations |GROUP1= | |gr1 = Conversations |GROUP1= | ||
| 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.}} |DESCRIPTION= | {{Important | This function is intended to be used by [[BIS_fnc_kbTell]] only.}} |DESCRIPTION= | ||
| [missionName, topic] call [[BIS_fnc_kbTopicConfig]] |SYNTAX= | | [missionName, topic] call [[BIS_fnc_kbTopicConfig]] |SYNTAX= | ||
Line 21: | Line 18: | ||
| [[Config]] - the topic's config entry. [[nil]] on error or not found |RETURNVALUE= | | [[Config]] - the topic's config entry. [[nil]] on error or not found |RETURNVALUE= | ||
|x1= <code>[[private]] _configTopic = ["missionName", "topic"] [[call]] [[BIS_fnc_kbTopicConfig]];</code> |EXAMPLE1= | |x1= <code>[[private]] _configTopic = ["missionName", "topic"] [[call]] [[BIS_fnc_kbTopicConfig]];</code> |EXAMPLE1= | ||
| [[Conversations]] [[BIS_fnc_kbTell]] |SEEALSO= | | [[Conversations]] [[BIS_fnc_kbTell]] |SEEALSO= |
Revision as of 23:22, 16 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