BIS fnc kbTopicConfig: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Page filling) |
Lou Montana (talk | contribs) m (Fix filling) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Reads the [[Config|configs]] to return a matching <tt>CfgSentences</tt> | | 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]].}} | |||
{{note | This function is intended to be used by [[BIS_fnc_kbTell]] only.}} |DESCRIPTION= | {{note | This function is intended to be used by [[BIS_fnc_kbTell]] only.}} |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [ | | [missionName, topic] call [[BIS_fnc_kbTopicConfig]] |SYNTAX= | ||
|p1= | |p1= missionName: [[String]] |PARAMETER1= | ||
|p2= topic: [[String]] |PARAMETER2= | |p2= topic: [[String]] |PARAMETER2= | ||
| [[Config]] - [[nil]] on error or not found |RETURNVALUE= | | [[Config]] - the topic's config entry. [[nil]] on error or not found |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>["missionName", "topic"] [[call]] [[BIS_fnc_kbTopicConfig]];</code> |EXAMPLE1= | |x1= <code>[[private]] _configTopic = ["missionName", "topic"] [[call]] [[BIS_fnc_kbTopicConfig]];</code> |EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 18:46, 14 April 2020
Description
- Description:
- Reads the configs to return a matching config >> CfgSentences >> missionName >> topic entry. Template:note
- Execution:
- call
- Groups:
- Uncategorised
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