Arma 3 Scripting

Function in Configs

BIS_fnc_configExtremes

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

Description

Scan config paths and return min and max values for each property.

Can be used only for properties of type Number and Array (value is considered to be the geometric mean of all numbers in the array).

Syntax

[paths, properties, propertyTypes, propertyDefaults] call BIS_fnc_configExtremes

Parameters:

Returns: Array - [minValues, maxValues] where minValues and maxValues are arrays respective to the properties array.

Examples

Example 1

private _paths = [configFile >> "CfgWeapons"] call BIS_fnc_returnChildren;
[_paths, ["maxRange", "reloadTime"]] call BIS_fnc_configExtremes;