configProperties
Jump to navigation
Jump to search
Description
- Description:
- Returns an array of config entries which meet criteria in condition code. Command iterates through available config properties for given config entry. If 3rd param is true the search also includes inherited properties. Current looked at config is stored in _x variable (similar to alternative count command implementation). Condition has to return true in order for the looked at property to be added to the resulting array.
- Groups:
- Uncategorised
Syntax
- Syntax:
- configProperties [config, condition, inherit]
- Parameters:
- [config, condition, inherit]: Array
- config: Config - config entry to search
- condition: String - code, which if returns true, adds current property to result
- inherit: Boolean - include inherited properties
- Return Value:
- Array - Array of Configs
Examples
- Example 1:
_configs = [configFile >> "RscText", "true", true];
- Example 2:
- Get all hitpoints of a tuck:
_hitPoints = []; 0 = configProperties [ configFile >> "CfgVehicles" >> "O_Truck_02_box_F" >> "HitPoints", "_hitPoints pushBack configName _x; true", true ]; hint str _hitPoints;
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
[[Category:Introduced with arma3dev version 1.35]][[ Category: arma3dev: New Scripting Commands | CONFIGPROPERTIES]][[ Category: arma3dev: Scripting Commands | CONFIGPROPERTIES]]