BIS fnc kbTopicConfig: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *(\[\[[a-zA-Z ]+\]\].+) \|x1=" to " |r1=$1 |x1=") |
Lou Montana (talk | contribs) m (Text replacement - "{{Feature | Informative | " to "{{Feature|informative|") |
||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| tkoh | |game1= tkoh | ||
|version1= 1.00 | |||
| | |game2= arma3 | ||
|version2= 0.50 | |||
|gr1= Conversations | |gr1= Conversations | ||
| Reads the [[Config|configs]] to return a matching | |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 | | {{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.}} | {{Feature | important | This function is intended to be used by [[BIS_fnc_kbTell]] only.}} | ||
| [missionName, topic] call [[BIS_fnc_kbTopicConfig]] | |s1= [missionName, topic] call [[BIS_fnc_kbTopicConfig]] | ||
|p1= missionName: [[String]] | |p1= missionName: [[String]] | ||
Line 17: | Line 19: | ||
|p2= topic: [[String]] | |p2= topic: [[String]] | ||
|r1=[[Config]] - the topic's config entry. [[nil]] on error or not found | |r1= [[Config]] - the topic's config entry. [[nil]] on error or not found | ||
|x1= < | |x1= <sqf>private _configTopic = ["missionName", "topic"] call BIS_fnc_kbTopicConfig;</sqf> | ||
|seealso= [[Conversations]] [[BIS_fnc_kbTell]] | |seealso= [[Conversations]] [[BIS_fnc_kbTell]] | ||
}} | }} | ||
Latest revision as of 21:41, 16 May 2024
Description
- Description:
- Reads the configs to return a matching config >> CfgSentences >> missionName >> topic entry.
- 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:
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