BIS fnc kbTopicConfig: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " {{Function|Comments=" to "{{Function|Comments=")
(Page filling)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| ''N/A''<br>{{placeholder}} |DESCRIPTION=
| 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=
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_kbTopicConfig]]; --> |SYNTAX=
| [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}}]]
[[Category:Functions|{{uc:kbTopicConfig}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:kbTopicConfig}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:kbTopicConfig}}]]

Revision as of 19:39, 14 April 2020

Hover & click on the images for description

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

Notes

Bottom Section