configSourceAddonList: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{GameCategory|arma3|Scripting Commands}}
{{RV|type=command
{{Command|Comments=


| arma3 |Game name=
|game1= arma3
|version1= 1.58


|1.58|Game version=
|gr1= Mods and Addons
|gr2= Config


|gr1= Mods and Addons |GROUP1=
|descr= Returns an array of addons ([[CfgPatches]]) in which the given config class is defined.


|s1= [[configSourceAddonList]] config


| Returns an array of addons ([[CfgPatches]]) in which the given config class is defined. |DESCRIPTION=
|p1= config: [[Config]]


| '''configSourceAddonList''' config|SYNTAX=
|r1= [[Array]] of [[String]]s


|p1= config: [[Config]] |PARAMETER1=
|x1= <sqf>_addons = configSourceAddonList (configFile >> "CfgVehicles" >> "Man"); // returns ["A3_Data_F", "A3_Characters_F", "A3_Data_F_Curator", "A3_Air_F_Heli"]</sqf>
 
| [[Array]] of [[String]]s |RETURNVALUE=
 
|x1= <code>_addons = [[configSourceAddonList]] ([[configFile]] >> "CfgVehicles" >> "Man");
[[hint]] [[str]] _addons; // ["A3_Data_F","A3_Characters_F","A3_Data_F_Curator","A3_Air_F_Heli"]</code> |EXAMPLE1=
 
| [[configFile]], [[configSourceMod]], [[configSourceModList]] |SEEALSO=


|seealso= [[configFile]] [[configSourceMod]] [[configSourceModList]]
}}
}}

Latest revision as of 10:21, 13 May 2022

Hover & click on the images for description

Description

Description:
Returns an array of addons (CfgPatches) in which the given config class is defined.
Groups:
Mods and AddonsConfig

Syntax

Syntax:
configSourceAddonList config
Parameters:
config: Config
Return Value:
Array of Strings

Examples

Example 1:
_addons = configSourceAddonList (configFile >> "CfgVehicles" >> "Man"); // returns ["A3_Data_F", "A3_Characters_F", "A3_Data_F_Curator", "A3_Air_F_Heli"]

Additional Information

See also:
configFile configSourceMod configSourceModList

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