config / name: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) 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: | ||
{{Command | {{Command | ||
| arma1 | | arma1 | ||
|gr1= Config | |gr1= Config | ||
|1.00 | |1.00 | ||
| Returns [[Config | config]] entry with given name (alias for [[config greater greater name|config >> name]], slightly slower but with [[SQF_syntax#Rules_of_Precedence | higher precedence]]). Do not confuse with [[a_/_b|division operator /]] | | Returns [[Config | config]] entry with given name (alias for [[config greater greater name|config >> name]], slightly slower but with [[SQF_syntax#Rules_of_Precedence | higher precedence]]). Do not confuse with [[a_/_b|division operator /]] | ||
| config '''/''' name | | config '''/''' name | ||
| p1 = config: [[Config]] | | p1 = config: [[Config]] | ||
|p2 = name: [[String]] | = Parameter 2 | |p2 = name: [[String]] | = Parameter 2 | ||
| [[Config]] - config entry | | [[Config]] - config entry | ||
|x1= <code>[[configFile]] / "CfgVehicles";</code> | |x1= <code>[[configFile]] / "CfgVehicles";</code> | ||
| [[configFile]], [[missionConfigFile]], [[campaignConfigFile]], [[configName]], [[config greater greater name|config >> name]], [[count]], [[getArray]], [[getText]], [[getNumber]], [[inheritsFrom]], [[isArray]], [[isClass]], [[isNumber]], [[isText]], [[select]] | | [[configFile]], [[missionConfigFile]], [[campaignConfigFile]], [[configName]], [[config greater greater name|config >> name]], [[count]], [[getArray]], [[getText]], [[getNumber]], [[inheritsFrom]], [[isArray]], [[isClass]], [[isNumber]], [[isText]], [[select]] | ||
}} | }} |
Revision as of 01:11, 18 January 2021
Description
- Description:
- Returns config entry with given name (alias for config >> name, slightly slower but with higher precedence). Do not confuse with division operator /
- Groups:
- Config
Syntax
Examples
- Example 1:
configFile / "CfgVehicles";
Additional Information
- See also:
- configFilemissionConfigFilecampaignConfigFileconfigNameconfig >> namecountgetArraygetTextgetNumberinheritsFromisArrayisClassisNumberisTextselect
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
- Posted on Apr 1, 2014 - 00:02
- ffur2007slx2_5
-
(ArmA3 1.14) config / name can be composed to config >> name String or Array format via BIS_fnc_configPath. E.g.
[(configFile/"ATMineCrater"/"MissileCircleDust"),""] call BIS_fnc_configPath; //return: "configfile >> "ATMineCrater" >> "MissileCircleDust""
[(configFile/"ATMineCrater"/"MissileCircleDust"),[]] call BIS_fnc_configPath; //return: ["configfile","ATMineCrater","MissileCircleDust"]