BIS_fnc_configExtremes
Jump to navigation
Jump to search
Description
- 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). - Execution:
- call
- Groups:
- Configs
Syntax
- Syntax:
- [paths, properties, propertyTypes, propertyDefaults] call BIS_fnc_configExtremes
- Parameters:
- paths: Array of Configs - paths to be scanned.
- properties: Array of Strings - class names of properties to be evaluated.
- propertyTypes: Array of Booleans - (Optional, default false) whether the property at the respective index should be evaluated and returned as a logarithmic number
- propertyDefaults: Array of Numbers - (Optional, default 0) value to be used in cases where the property at the respective index is not defined
- Return Value:
- 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;
Additional Information
- See also:
- See also needed
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