---
name: "getLightInfo"
type: command
status: ok
groups: ["Object Manipulation"]
arma3_since: "2.22"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/getLightInfo
revid: 378895
updated: 2026-08-11T14:56:31Z
---

# getLightInfo

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

## Description

Returns various properties for the given `1. lightpoint` or `1. lightreflector`. ConePars and VolumeShapePars are exclusive properties of `1. lightreflector` only.

## Syntax

### Syntax 1

```sqf
getLightInfo light
```

**Parameters:**

- `light`: [Object](../topics/Object.md) - `1. lightpoint` or `1. lightreflector`

**Returns:** [Array](../topics/Array.md) with [intensity, diffuseColor, ambientColor, dayLight, IR, useFlare, flareSize, flareMaxDistance, attenuationPars, attachedToPars, conePars, volumeShapePars]
- 0 - intensity: [Number](../topics/Number.md) - getter for [setLightIntensity](../commands/setLightIntensity.md) ([setLightBrightness](../commands/setLightBrightness.md) also sets intensity in a weird way, but it is also obsolete)
- 1 - diffuseColor: [Color](../topics/Color.md) - getter for [setLightColor](../commands/setLightColor.md)
- 2 - ambientColor: [Color](../topics/Color.md) - getter for [setLightAmbient](../commands/setLightAmbient.md)
- 3 - dayLight: [Boolean](../topics/Boolean.md) - getter for [setLightDayLight](../commands/setLightDayLight.md)
- 4 - IR: [Boolean](../topics/Boolean.md) - getter for [setLightIR](../commands/setLightIR.md)
- 5 - useFlare: [Boolean](../topics/Boolean.md) - getter for [setLightUseFlare](../commands/setLightUseFlare.md)
- 6 - flareSize: [Number](../topics/Number.md) - getter for [setLightFlareSize](../commands/setLightFlareSize.md)
- 7 - flareMaxDistance: [Number](../topics/Number.md) - getter for [setLightFlareMaxDistance](../commands/setLightFlareMaxDistance.md)
- 8 - attenuationPars: [Array](../topics/Array.md) - getter for [setLightAttenuation](../commands/setLightAttenuation.md)
- 9 - attachedToPars: [Array](../topics/Array.md) - getter for [lightAttachObject](../commands/lightAttachObject.md), [lightDetachObject](../commands/lightDetachObject.md)
- 10 - conePars: [Array](../topics/Array.md) - getter for [setLightConePars](../commands/setLightConePars.md)
- 11 - volumeShapePars: [Array](../topics/Array.md) - getter for [setLightVolumeShape](../commands/setLightVolumeShape.md)

### Syntax 2

```sqf
light getLightInfo index
```

**Parameters:**

- `light`: [Object](../topics/Object.md) - `1. lightpoint` or `1. lightreflector`
- `index`: [Number](../topics/Number.md) - property index (see main syntax, for example 0 for light intensity)

**Returns:** [Anything](../topics/Anything.md) - depends on the requested property, or [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
private _lightInfo = getLightInfo light1;
```

### Example 2

```sqf
private _lightIntensity = light1 getLightInfo 0;
```

## See also

[setLightIntensity](../commands/setLightIntensity.md) · [setLightColor](../commands/setLightColor.md) · [setLightAmbient](../commands/setLightAmbient.md) · [setLightDayLight](../commands/setLightDayLight.md) · [setLightIR](../commands/setLightIR.md) · [setLightUseFlare](../commands/setLightUseFlare.md) · [setLightFlareSize](../commands/setLightFlareSize.md) · [setLightFlareMaxDistance](../commands/setLightFlareMaxDistance.md) · [setLightAttenuation](../commands/setLightAttenuation.md) · [lightAttachObject](../commands/lightAttachObject.md) · [lightDetachObject](../commands/lightDetachObject.md) · [setLightConePars](../commands/setLightConePars.md) · [getUnitFreefallInfo](../commands/getUnitFreefallInfo.md) · [getEntityInfo](../commands/getEntityInfo.md) · [getModelInfo](../commands/getModelInfo.md)

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