BIS fnc returnConfigEntry: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\|= " to " ") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma2 | | arma2 | ||
|1.00 | |1.00 | ||
|gr1= Configs | |gr1= Configs | ||
| Explores parent classes in the run-time config for the value of a config entry. | | Explores parent classes in the run-time config for the value of a config entry. | ||
| [config,attribute,defaultValue] call [[BIS_fnc_returnConfigEntry]] | | [config,attribute,defaultValue] call [[BIS_fnc_returnConfigEntry]] | ||
|p1= config: [[Config]] - Starting config | |p1= config: [[Config]] - Starting config | ||
|p2= attribute: [[String]] - Config attribute to be returned | |p2= attribute: [[String]] - Config attribute to be returned | ||
|p3= defaultValue: [[Anything]] - (Optional, default [[Nothing]]) Value to be returned if attribute is not existent | |p3= defaultValue: [[Anything]] - (Optional, default [[Nothing]]) Value to be returned if attribute is not existent | ||
| [[Array]], [[String]] or [[Number]] - Attribute value | | [[Array]], [[String]] or [[Number]] - Attribute value | ||
|x1= <code>[configfile >> "Cfg3DEN" >> "Attributes" >> "ActivationType","idc"] [[call]] [[BIS_fnc_returnConfigEntry]];</code> | |x1= <code>[configfile >> "Cfg3DEN" >> "Attributes" >> "ActivationType","idc"] [[call]] [[BIS_fnc_returnConfigEntry]];</code> | ||
|[[configFile]], [[BIS_fnc_getCfg]], [[BIS_fnc_getCfgData]] | |[[configFile]], [[BIS_fnc_getCfg]], [[BIS_fnc_getCfgData]] | ||
}} | }} | ||
Revision as of 23:39, 17 January 2021
Description
- Description:
- Explores parent classes in the run-time config for the value of a config entry.
- Execution:
- call
- Groups:
- Configs
Syntax
- Syntax:
- [config,attribute,defaultValue] call BIS_fnc_returnConfigEntry
- Parameters:
- config: Config - Starting config
- attribute: String - Config attribute to be returned
- defaultValue: Anything - (Optional, default Nothing) Value to be returned if attribute is not existent
- Return Value:
- Array, String or Number - Attribute value
Examples
- Example 1:
[configfile >> "Cfg3DEN" >> "Attributes" >> "ActivationType","idc"] call BIS_fnc_returnConfigEntry;
Additional Information
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