BIS fnc configExtremes: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[[cC]ategory:\{\{Name\|arma3\}\}: [fF]unctions\|\{\{uc:[a-z A-Z_]*\}\}\]\]" to "")
m (Text replacement - "\|(arg|eff|serverExec|mp|seealso)= " to "")
Line 8: Line 8:


|arg=
|arg=
|eff=
|Scan config paths and return min and max values for each property.
|Scan config paths and return min and max values for each property.
<br>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).
<br>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).

Revision as of 21:03, 21 May 2021

Hover & click on the images for description

Description

Description:
Description needed
Execution:
call
Groups:
Configs

Syntax

Syntax:
Syntax needed
Parameters:
paths: Array of Configs - paths to be scanned.
properties: Array of Strings - class names of properties to be evaluated.
propertyTypes (Optional): Array of Booleans - whether the property at the respective index should be evaluated and returned as a logarithmic number. Default: false
propertyDefaults (Optional): Array of Numbers - value to be used in cases where the property at the respective index is not defined. Default: 0
Return Value:
Return value needed

Examples

Example 1:
[[configFile >> "cfgWeapons"] call BIS_fnc_returnChildren, ["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