BIS fnc kbTopicConfig: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game version" to "|Game version=")
m (Text replacement - " |s1=[" to " |s1= [")
 
(29 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|Comments=
|game1= tkoh
____________________________________________________________________________________________
|version1= 1.00


| tkoh |Game name=
|game2= arma3
|version2= 0.50


|1.00|Game version=
|gr1= Conversations
____________________________________________________________________________________________


| ''N/A'' |DESCRIPTION=
|descr= Reads the [[Config|configs]] to return a matching {{hl|config [[config greater greater name|>>]] [[Description.ext#CfgSentences|CfgSentences]] [[config greater greater name|>>]] missionName [[config greater greater name|>>]] topic}} entry.
____________________________________________________________________________________________
{{Feature | Informative | [[Config]]s are checked in that order: [[configFile]], [[campaignConfigFile]], [[missionConfigFile]].}}
{{Feature | important | This function is intended to be used by [[BIS_fnc_kbTell]] only.}}


| <!-- [] call [[BIS_fnc_kbTopicConfig]]; --> |SYNTAX=
|s1= [missionName, topic] call [[BIS_fnc_kbTopicConfig]]


|p1= |PARAMETER1=
|p1= missionName: [[String]]


| |RETURNVALUE=
|p2= topic: [[String]]
____________________________________________________________________________________________


|x1= <code></code> |=
|r1= [[Config]] - the topic's config entry. [[nil]] on error or not found
____________________________________________________________________________________________


| |SEEALSO=
|x1= <sqf>private _configTopic = ["missionName", "topic"] call BIS_fnc_kbTopicConfig;</sqf>


|seealso= [[Conversations]] [[BIS_fnc_kbTell]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Conversations|{{uc:kbTopicConfig}}]]
[[Category:Functions|{{uc:kbTopicConfig}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:kbTopicConfig}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:kbTopicConfig}}]]

Latest revision as of 00:11, 13 July 2022

Hover & click on the images for description

Description

Description:
Reads the configs to return a matching config >> CfgSentences >> missionName >> topic entry.
This function is intended to be used by BIS_fnc_kbTell only.
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