{"name":"allLODs","title":"allLODs","type":"command","url":"https://community.bistudio.com/wiki/allLODs","revid":377653,"updated":"2026-01-02T09:02:00Z","groups":["Object Manipulation"],"status":"ok","games":{"arma3":"2.06"},"since":"arma3 2.06","arma3_since":"2.06","description":"Returns the list of object or model LODs.","syntaxes":[{"syntax":"allLODs objectOrModel","params":[{"name":"objectOrModel","type":"Object or String","description":"Object or String\n\n- Object - object\n- String - model path (see getModelInfo)","type_expr":"Object | String","text":"objectOrModel: Object or String\n\n- Object - object\n- String - model path (see getModelInfo)"}],"returns":{"type":"Array","type_expr":"Array","description":"with [LODindex, LODname, LODresolution, countNamedSelections]\n- 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\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","right":{"text":"objectOrModel"}}],"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*/"]}],"see_also":["createSimpleObject","hideSelection","selectionNames","selectionPosition","namedProperties","animationNames","LOD resolutions"]}