{"name":"allLODs","operator":null,"title":"allLODs","type":"command","url":"https://community.bistudio.com/wiki/allLODs","revid":377653,"updated":"2026-01-02T09:02:00Z","groups":["Object Manipulation"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.06"}],"since":{"game":"arma3","name":"Arma 3","version":"2.06"},"arma3_since":"2.06","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns the list of object or model LODs.","syntaxes":[{"syntax":"allLODs objectOrModel","since":null,"effect":null,"exec":null,"params":[{"name":"objectOrModel","type":"Object or String","optional":false,"default":null,"description":"Object or String\n- Object - object\n- String - model path (see getModelInfo)","types":["Object","String"],"since":null,"text":"objectOrModel: Object or String\n- Object - object\n- String - model path (see getModelInfo)"}],"returns":{"type":"Array with [LODindex, LODname, LODresolution, countNamedSelections]","types":["Array"],"description":"LODindex: Number - direct index of the LOD for fast access - LODname: String - LOD description name for LOD identification - LODresolution: Number - the actual LOD resolution, could be used to select LOD in selectionNames and selectionPosition - countNamedSelections: Number - number of named selections in this LOD, could be returned with selectionNames command","text":"Array with [LODindex, LODname, LODresolution, countNamedSelections]\n- LODindex: Number - direct index of the LOD for fast access\n- LODname: String - LOD description name for LOD identification\n- LODresolution: Number - the actual LOD resolution, could be used to select LOD in selectionNames and selectionPosition\n- countNamedSelections: Number - number of named selections in this LOD, could be returned with selectionNames command"},"form":"unary","operator":null,"left":null,"right":{"text":"objectOrModel","types":["Object","String"]}}],"examples":[{"text":"```sqf\nallLODs player;\n/*\n    [\n        [0,\"1\",1,91],\n        [1,\"2\",2,91],\n        [2,\"3\",3,84],\n        [3,\"4\",4,43],\n        [4,\"5\",5,34],\n        [5,\"VIEW_PILOT\",1100,89],\n        [6,\"shadow(0)\",10000,80],\n        [7,\"shadow(10)\",10010,33],\n        [8,\"geometry\",1e+013,42],\n        [9,\"memory\",1e+015,55],\n        [10,\"landContact\",2e+015,0],\n        [11,\"hitpoints\",5e+015,33],\n        [12,\"geometryView\",6e+015,19],\n        [13,\"geometryFire\",7e+015,57],\n        [14,\"shadow(1000)\",11000,80],\n        [15,\"shadow(1010)\",11010,33]\n    ]\n*/\n```","code":["allLODs player;\n/*\n\t[\n\t\t[0,\"1\",1,91],\n\t\t[1,\"2\",2,91],\n\t\t[2,\"3\",3,84],\n\t\t[3,\"4\",4,43],\n\t\t[4,\"5\",5,34],\n\t\t[5,\"VIEW_PILOT\",1100,89],\n\t\t[6,\"shadow(0)\",10000,80],\n\t\t[7,\"shadow(10)\",10010,33],\n\t\t[8,\"geometry\",1e+013,42],\n\t\t[9,\"memory\",1e+015,55],\n\t\t[10,\"landContact\",2e+015,0],\n\t\t[11,\"hitpoints\",5e+015,33],\n\t\t[12,\"geometryView\",6e+015,19],\n\t\t[13,\"geometryFire\",7e+015,57],\n\t\t[14,\"shadow(1000)\",11000,80],\n\t\t[15,\"shadow(1010)\",11010,33]\n\t]\n*/"]},{"text":"```sqf\nallLODs getText (configFile >> \"CfgWeapons\" >> \"arifle_MX_F\" >> \"model\");\n/*\n    [\n        [0,\"1\",1,17],\n        [1,\"2\",2,17],\n        [2,\"3\",3,16],\n        [3,\"4\",4,14],\n        [4,\"5\",5,12],\n        [5,\"6\",6,9],\n        [6,\"VIEW_PILOT\",1100,16],\n        [7,\"shadow(0)\",10000,2],\n        [8,\"shadow(10)\",10010,0],\n        [9,\"geometry\",1e+013,0],\n        [10,\"geometrySimple\",2e+013,0],\n        [11,\"memory\",1e+015,13],\n        [12,\"geometryView\",6e+015,2],\n        [13,\"shadow(1000)\",11000,2],\n        [14,\"shadow(1010)\",11010,0]\n    ]\n*/\n```","code":["allLODs getText (configFile >> \"CfgWeapons\" >> \"arifle_MX_F\" >> \"model\");\n/*\n\t[\n\t\t[0,\"1\",1,17],\n\t\t[1,\"2\",2,17],\n\t\t[2,\"3\",3,16],\n\t\t[3,\"4\",4,14],\n\t\t[4,\"5\",5,12],\n\t\t[5,\"6\",6,9],\n\t\t[6,\"VIEW_PILOT\",1100,16],\n\t\t[7,\"shadow(0)\",10000,2],\n\t\t[8,\"shadow(10)\",10010,0],\n\t\t[9,\"geometry\",1e+013,0],\n\t\t[10,\"geometrySimple\",2e+013,0],\n\t\t[11,\"memory\",1e+015,13],\n\t\t[12,\"geometryView\",6e+015,2],\n\t\t[13,\"shadow(1000)\",11000,2],\n\t\t[14,\"shadow(1010)\",11010,0]\n\t]\n*/"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["createSimpleObject","hideSelection","selectionNames","selectionPosition","namedProperties","animationNames","LOD resolutions"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Object Manipulation","Introduced with Arma 3 version 2.06","Scripting Commands"]}