---
name: "allLODs"
type: command
status: ok
groups: ["Object Manipulation"]
arma3_since: "2.06"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/allLODs
revid: 377653
updated: 2026-01-02T09:02:00Z
---

# allLODs

*Command · Object Manipulation · Arma 3 v2.06*

## Description

Returns the list of object or model LODs.

## Syntax

```sqf
allLODs objectOrModel
```

**Parameters:**

- `objectOrModel`: [Object](../topics/Object.md) or [String](../topics/String.md)
  - [Object](../topics/Object.md) - object
  - [String](../topics/String.md) - model path (see [getModelInfo](../commands/getModelInfo.md))

**Returns:** [Array](../topics/Array.md) with [LODindex, LODname, LODresolution, countNamedSelections]
- LODindex: [Number](../topics/Number.md) - direct index of the LOD for fast access
- LODname: [String](../topics/String.md) - LOD description name for LOD identification
- LODresolution: [Number](../topics/Number.md) - the actual LOD resolution, could be used to select LOD in [selectionNames](../commands/selectionNames.md) and [selectionPosition](../commands/selectionPosition.md)
- countNamedSelections: [Number](../topics/Number.md) - number of named selections in this LOD, could be returned with [selectionNames](../commands/selectionNames.md) command

## Examples

### Example 1

```sqf
allLODs player;
/*
    [
        [0,"1",1,91],
        [1,"2",2,91],
        [2,"3",3,84],
        [3,"4",4,43],
        [4,"5",5,34],
        [5,"VIEW_PILOT",1100,89],
        [6,"shadow(0)",10000,80],
        [7,"shadow(10)",10010,33],
        [8,"geometry",1e+013,42],
        [9,"memory",1e+015,55],
        [10,"landContact",2e+015,0],
        [11,"hitpoints",5e+015,33],
        [12,"geometryView",6e+015,19],
        [13,"geometryFire",7e+015,57],
        [14,"shadow(1000)",11000,80],
        [15,"shadow(1010)",11010,33]
    ]
*/
```

### Example 2

```sqf
allLODs getText (configFile >> "CfgWeapons" >> "arifle_MX_F" >> "model");
/*
    [
        [0,"1",1,17],
        [1,"2",2,17],
        [2,"3",3,16],
        [3,"4",4,14],
        [4,"5",5,12],
        [5,"6",6,9],
        [6,"VIEW_PILOT",1100,16],
        [7,"shadow(0)",10000,2],
        [8,"shadow(10)",10010,0],
        [9,"geometry",1e+013,0],
        [10,"geometrySimple",2e+013,0],
        [11,"memory",1e+015,13],
        [12,"geometryView",6e+015,2],
        [13,"shadow(1000)",11000,2],
        [14,"shadow(1010)",11010,0]
    ]
*/
```

## See also

[createSimpleObject](../commands/createSimpleObject.md) · [hideSelection](../commands/hideSelection.md) · [selectionNames](../commands/selectionNames.md) · [selectionPosition](../commands/selectionPosition.md) · [namedProperties](../commands/namedProperties.md) · [animationNames](../commands/animationNames.md) · LOD resolutions

<sub>Source: [BI Community Wiki — allLODs](https://community.bistudio.com/wiki/allLODs) (revision 377653).</sub>
