config / name: Difference between revisions
Jump to navigation
Jump to search
(upd. links) |
m (template:command argument fix) |
||
(18 intermediate revisions by 8 users not shown) | |||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Returns | | 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]]|= | | p1 = config: [[Config]] |PARAMETER1= | ||
|p2 = name: [[String]] | = Parameter 2 | |p2 = name: [[String]] | = Parameter 2 | ||
| [[Config]] | | [[Config]] - config entry |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= < | |x1= <code>[[configFile]] / "CfgVehicles";</code> |EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[configFile]], [[configName]], [[config name]],[[count | | [[configFile]], [[missionConfigFile]], [[campaignConfigFile]], [[configName]], [[config greater greater name|config >> name]], [[count]], [[getArray]], [[getText]], [[getNumber]], [[inheritsFrom]], [[isArray]], [[isClass]], [[isNumber]], [[isText]], [[select]] |SEEALSO= | ||
}} | }} | ||
Line 29: | Line 29: | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<!-- Note Section BEGIN --> | <!-- 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 --> | <!-- Note Section END --> | ||
</dl> | </dl> | ||
Line 38: | Line 46: | ||
[[Category:Scripting Commands ArmA|#]] | [[Category:Scripting Commands ArmA|#]] | ||
[[Category:Scripting Commands ArmA2|#]] | [[Category:Scripting Commands ArmA2|#]] | ||
[[Category:Scripting Commands Arma 3|#]] | |||
[[Category:Command_Group:_System_Commands|#]] | [[Category:Command_Group:_System_Commands|#]] | ||
Revision as of 14: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"]