{"name":"BIS_fnc_uniqueClasses","operator":null,"title":"BIS fnc uniqueClasses","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_uniqueClasses","revid":373744,"updated":"2025-06-24T21:38:03Z","groups":["Configs"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"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.","syntaxes":[{"syntax":"[config, code] call BIS_fnc_uniqueClasses","since":null,"effect":null,"exec":null,"params":[{"name":"config","type":"Config","optional":false,"default":null,"description":"class which is searched","types":["Config"],"since":null,"text":"config: Config - class which is searched"},{"name":"code","type":"Code","optional":false,"default":null,"description":"code executed on class, which is passed as `_this` or `_x`","types":["Code"],"since":null,"text":"code: Code - code executed on class, which is passed as `_this` or `_x`"}],"returns":{"type":"Array of classes with unique param in format [[config, value], ...] where:","types":["Array"],"description":"config: Config - config which defines the parameter value - value: Anything - value returned by the specified `code` parameter","text":"Array of classes with unique param in format [[config, value], ...] where:\n- config: Config - config which defines the parameter value\n- value: Anything - value returned by the specified `code` parameter"}}],"examples":[{"text":"```sqf\n_aiClassTypes = [configFile >> \"CfgVehicles\", { getText (_this >> \"aiBrainType\") }] call BIS_fnc_uniqueClasses;\n```","code":["_aiClassTypes = [configFile >> \"CfgVehicles\", { getText (_this >> \"aiBrainType\") }] call BIS_fnc_uniqueClasses;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_returnChildren","BIS_fnc_returnParents"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Configs","Functions","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}