configProperties: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<br><br>{{Feature" to "{{Feature") |
Lou Montana (talk | contribs) m (Text replacement - " \| *(([^=\| ]+)('''|\[\[)([^=\| ]+)) * \|p1=" to " |s1= $1 |p1=") |
||
Line 14: | Line 14: | ||
* <tt>isClass _x &&</tt> }} | * <tt>isClass _x &&</tt> }} | ||
| '''configProperties''' [config, condition, inherit] | |s1= '''configProperties''' [config, condition, inherit] | ||
|p1= [config, condition, inherit]: [[Array]] | |p1= [config, condition, inherit]: [[Array]] |
Revision as of 22:58, 12 June 2021
Description
- Description:
- Description needed
- Groups:
- Config
Syntax
- Syntax:
- configProperties [config, condition, inherit]
- Parameters:
- [config, condition, inherit]: Array
- config: Config - config entry to search
- condition (Optional): String - expression, which if returns true, adds current property to result. Default: "true"
- inherit (Optional): Boolean - include inherited properties. Default: true
- Return Value:
- Array - Array of Configs
Examples
- Example 1:
_configs = configProperties [configFile >> "CfgVehicles" >> "O_Truck_02_box_F"];
- Example 2:
_configs = configProperties [configFile >> "RscText", "true", true];
- Example 3:
- Get all hitpoints of a truck:
_hitPoints = []; _hitPointsCfgs = configProperties [ configFile >> "CfgVehicles" >> "O_Truck_02_box_F" >> "HitPoints", "true", true ]; hint str _hitPointsCfgs;
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