BIS fnc kbTopicConfig: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " {{Function|Comments=" to "{{Function|Comments=") |
Lou Montana (talk | contribs) (Page filling) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Reads the [[Config|configs]] to return a matching <tt>CfgSentences</tt> config entry (in that order: [[configFile]], [[campaignConfigFile]], [[missionConfigFile]]). | ||
{{note | This function is intended to be used by [[BIS_fnc_kbTell]] only.}} |DESCRIPTION= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [mission, topic] call [[BIS_fnc_kbTopicConfig]] |SYNTAX= | ||
|p1= |PARAMETER1= | |p1= mission: [[String]] |PARAMETER1= | ||
| |RETURNVALUE= | |p2= topic: [[String]] |PARAMETER2= | ||
| [[Config]] - [[nil]] on error or not found |RETURNVALUE= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code></code> |EXAMPLE1= | |x1= <code>["missionName", "topic"] [[call]] [[BIS_fnc_kbTopicConfig]];</code> |EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| |SEEALSO= | | [[Conversations]] [[BIS_fnc_kbTell]] |SEEALSO= | ||
}} | }} | ||
Line 32: | Line 34: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:{{Name|arma3}}: Functions|{{uc:kbTopicConfig}}]] | |||
[[Category:Function Group: Conversations|{{uc:kbTopicConfig}}]] | [[Category:Function Group: Conversations|{{uc:kbTopicConfig}}]] | ||
Revision as of 18:39, 14 April 2020
Description
- Description:
- Reads the configs to return a matching CfgSentences config entry (in that order: configFile, campaignConfigFile, missionConfigFile). Template:note
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- [mission, topic] call BIS_fnc_kbTopicConfig
- Parameters:
- mission: String
- topic: String
- Return Value:
- Config - nil on error or not found
Examples
- Example 1:
["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