{"name":"getPersonUsedDLCs","operator":null,"title":"getPersonUsedDLCs","type":"command","url":"https://community.bistudio.com/wiki/getPersonUsedDLCs","revid":352086,"updated":"2024-02-01T23:24:46Z","groups":["Broken Commands","DLC"],"status":"broken","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.36"}],"since":{"game":"arma3","name":"Arma 3","version":"1.36"},"arma3_since":"1.36","branch":null,"locality":{"argument":"global","effect":null,"server_exec":false},"exec":null,"description":"Returns a list of all DLCs objects the unit is currently using. For example if a unit is inside a vehicle from DLC, it will return the code of that DLC.","syntaxes":[{"syntax":"getPersonUsedDLCs unit","since":null,"effect":null,"exec":null,"params":[{"name":"unit","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"unit: Object"}],"returns":{"type":"Array of Numbers","types":["Array","Number"],"description":null,"text":"Array of Numbers"},"form":"unary","operator":null,"left":null,"right":{"text":"unit","types":["Object"]}}],"examples":[{"text":"```sqf\n_objects = getPersonUsedDLCs player;\n```","code":["_objects = getPersonUsedDLCs player;"]}],"multiplayer":null,"problems":"> [!WARNING]\n> This command does not work on a dedicated server.","aliases":[],"see_also":["getDLCs","getObjectDLC","getMissionDLCs","getDLCAssetsUsageByName","getDLCAssetsUsage","getAssetDLCInfo"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Broken Commands","Command Group: DLC","Introduced with Arma 3 version 1.36","Scripting Commands"]}