BIS fnc kbTopicConfig: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Page filling)
m (Fix filling)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Reads the [[Config|configs]] to return a matching <tt>CfgSentences</tt> config entry (in that order: [[configFile]], [[campaignConfigFile]], [[missionConfigFile]]).
| Reads the [[Config|configs]] to return a matching <tt>config [[config greater greater name|&gt;&gt;]] [[Description.ext#CfgSentences|CfgSentences]] [[config greater greater name|&gt;&gt;]] missionName [[config greater greater name|&gt;&gt;]] 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=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [mission, topic] call [[BIS_fnc_kbTopicConfig]] |SYNTAX=
| [missionName, topic] call [[BIS_fnc_kbTopicConfig]] |SYNTAX=


|p1= mission: [[String]] |PARAMETER1=
|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

Hover & click on the images for description

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

Notes

Bottom Section