Arma 3 Scripting

Command in Config

configProperties

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns an array of config entries that meet the criteria in the condition code. The command iterates through available classes and config properties for given config entry. Current looked at config is stored in _x variable (similar to alternative count command implementation). The condition has to return true in order for the looked at property to be added to the resulting array. This command is a bit slower than configClasses but allows to access inherited entries.

Syntax

configProperties [config, condition, inherit]

Parameters:

Returns: 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;

See also

Config · configFile · missionConfigFile · configClasses · configHierarchy