config / name: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (template:command argument fix) |
||
(41 intermediate revisions by 14 users not shown) | |||
Line 1: | Line 1: | ||
{{Command|= Comments | |||
____________________________________________________________________________________________ | |||
| arma |= Game name | |||
|1.00|= Game version | |||
____________________________________________________________________________________________ | |||
| 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 /]] |DESCRIPTION= | |||
____________________________________________________________________________________________ | |||
''' | | config '''/''' name|SYNTAX= | ||
| p1 = config: [[Config]] |PARAMETER1= | |||
|p2 = name: [[String]] | = Parameter 2 | |||
| [[Config]] - config entry |RETURNVALUE= | |||
____________________________________________________________________________________________ | |||
|x1= <code>[[configFile]] / "CfgVehicles";</code> |EXAMPLE1= | |||
____________________________________________________________________________________________ | |||
[[ | | [[configFile]], [[missionConfigFile]], [[campaignConfigFile]], [[configName]], [[config greater greater name|config >> name]], [[count]], [[getArray]], [[getText]], [[getNumber]], [[inheritsFrom]], [[isArray]], [[isClass]], [[isNumber]], [[isText]], [[select]] |SEEALSO= | ||
}} | |||
<h3 style="display:none">Notes</h3> | |||
<dl class="command_description"> | |||
<!-- Note Section BEGIN --> | |||
<dd class="notedate">Posted on Apr 1, 2014 - 00:02 | |||
<dt class="note">'''[[User:ffur2007slx2_5|ffur2007slx2_5]]'''<dd class="note"> | |||
(ArmA3 1.14) config / name can be composed to config >> name [[String]] or [[Array]] format via [[BIS_fnc_configPath]]. E.g. | |||
<code> | |||
[([[configFile]]/"ATMineCrater"/"MissileCircleDust"),""] [[call]] [[BIS_fnc_configPath]]; | |||
//return: "configfile >> "ATMineCrater" >> "MissileCircleDust""<br> | |||
[([[configFile]]/"ATMineCrater"/"MissileCircleDust"),[]] [[call]] [[BIS_fnc_configPath]]; | |||
//return: ["configfile","ATMineCrater","MissileCircleDust"] | |||
</code> | |||
<!-- Note Section END --> | |||
</dl> | |||
<h3 style="display:none">Bottom Section</h3> | |||
[[Category:Scripting Commands|#]] | |||
[[Category:Scripting Commands ArmA|#]] | |||
[[Category:Scripting Commands ArmA2|#]] | |||
[[Category:Scripting Commands Arma 3|#]] | |||
[[Category:Command_Group:_System_Commands|#]] | |||
Revision as of 15:35, 7 April 2019
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:
- Uncategorised
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"]