BIS_fnc_uniqueClasses

From Bohemia Interactive Community
Revision as of 23:38, 24 June 2025 by Smith.UA (talk | contribs) (Fix example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Hover & click on the images for description

Description

Description:
Composes an array of classes with unique param (based on returned value of passed code). If class inherits the param from parent, it's not listed.
Execution:
call
Groups:
Configs

Syntax

Syntax:
[config, code] call BIS_fnc_uniqueClasses
Parameters:
config: Config - class which is searched
code: Code - code executed on class, which is passed as _this or _x
Return Value:
Array of classes with unique param in format [[config, value], ...] where:
  • config: Config - config which defines the parameter value
  • value: Anything - value returned by the specified code parameter

Examples

Example 1:
_aiClassTypes = [configFile >> "CfgVehicles", { getText (_this >> "aiBrainType") }] call BIS_fnc_uniqueClasses;

Additional Information

See also:
BIS_fnc_returnChildren BIS_fnc_returnParents

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