Arma 3 Scripting

Function in Configs

BIS_fnc_uniqueClasses

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

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.

Syntax

[config, code] call BIS_fnc_uniqueClasses

Parameters:

Returns: Array of classes with unique param in format [[config, value], ...] where:

Examples

Example 1

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

See also

BIS_fnc_returnChildren · BIS_fnc_returnParents