Difference between revisions of "configFile"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
| arma1 |Game name=
| arma1
|gr1= Config |GROUP1=
|gr1= Config
|1.00|Game version=
| Return root of config entries hierarchy.<br>
| Return root of config entries hierarchy.<br>
See [[AllInOne Config]] for a full config extract as example. |DESCRIPTION=
See [[AllInOne Config]] for a full config extract as example.
| [[Config]] <nowiki>=</nowiki> '''configFile''' |SYNTAX=
| [[Config]] <nowiki>=</nowiki> '''configFile'''
| [[Config]] |RETURNVALUE=
| [[Config]]
|x1= <code>_isMyClassActive = [[isClass]] ([[configFile]] / "CfgPatches" / "MyClass");</code> |EXAMPLE1=
|x1= <code>_isMyClassActive = [[isClass]] ([[configFile]] / "CfgPatches" / "MyClass");</code>
| [[configClasses]], [[configProperties]], [[missionConfigFile]], [[campaignConfigFile]], [[config/name]], [[config greater greater name|config >> name]], [[configName]], [[count]], [[getArray]], [[getText]], [[getNumber]], [[inheritsFrom]], [[isArray]], [[isClass]], [[isNumber]], [[isText]], [[select]], [[configHierarchy]], [[getMissionConfigValue]], [[configSourceAddonList]] |SEEALSO=
| [[configClasses]], [[configProperties]], [[missionConfigFile]], [[campaignConfigFile]], [[config/name]], [[config greater greater name|config >> name]], [[configName]], [[count]], [[getArray]], [[getText]], [[getNumber]], [[inheritsFrom]], [[isArray]], [[isClass]], [[isNumber]], [[isText]], [[select]], [[configHierarchy]], [[getMissionConfigValue]], [[configSourceAddonList]]

Revision as of 01:10, 18 January 2021

Hover & click on the images for description


Return root of config entries hierarchy.
See AllInOne Config for a full config extract as example.


Config = configFile
Return Value:


Example 1:
_isMyClassActive = isClass (configFile / "CfgPatches" / "MyClass");

Additional Information

See also:
configClassesconfigPropertiesmissionConfigFilecampaignConfigFileconfig/nameconfig >> nameconfigNamecountgetArraygetTextgetNumberinheritsFromisArrayisClassisNumberisTextselectconfigHierarchygetMissionConfigValueconfigSourceAddonList


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


Posted on Jul 19, 2014 - 20:08
(ArmA3 1.24) It is recommended to use configClasses instead of BIS fnc getCfgSubClasses and BIS fnc uniqueClasses on subclasses collection or conditional selection. _faces = "true" configClasses (configFile >> "Cfgfaces"); //same as: _faces = (configfile >> "CfgFaces") call BIS fnc getCfgSubClasses; //Extract all animals: animals = "((configName _x) isKindOf 'animal')" configClasses (configFile >> "CfgVehicles"); /*same as: aniamls = []; [(configFile >> "CfgVehicles"),{ if ((configName _this) isKindOf “animal”) then { animals set [count animals, _this] } } ] call BIS fnc uniqueClasses;*/ Return nested subclasses, currently still BIS fnc returnChildren //Return all nested config classes.
[(configFile >> "CfgFaces"),1, true, true ] call BIS fnc returnChildren;

Bottom Section