---
name: "getLightingAt"
type: command
status: ok
groups: ["Lights"]
arma3_since: "2.00"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/getLightingAt
revid: 377785
updated: 2026-01-03T01:33:52Z
---

# getLightingAt

*Command · Lights · Arma 3 v2.00*

## Description

Gets provided object's lighting information.

> [!NOTE]
> The command will use [local](../commands/local.md) [player](../commands/player.md)'s night vision state to determine whether to include IR lights in the result or not.
>
> On a dedicated server, headless client or if the player is [null](../commands/objNull.md), the night vision state will always be off.

## Syntax

```sqf
getLightingAt obj
```

**Parameters:**

- `obj`: [Object](../topics/Object.md)

**Returns:** [Array](../topics/Array.md) with [ambientLightColor, ambientLightBrightness, dynamicLightColor, dynamicLightBrightness]
- ambientLightColor: [Color (RGB)](../topics/Color.md)
- ambientLightBrightness: [Number](../topics/Number.md)
- dynamicLightColor: [Color (RGB)](../topics/Color.md)
- dynamicLightBrightness: [Number](../topics/Number.md)

## Examples

### Example 1

```sqf
getLightingAt player; // returns [[1,1,1], 0.5, [0,0,0], 0]
```

### Example 2

```sqf
getLightingAt player params ["_ambientLightColour", "_ambientLightBrightness", "_dynamicLightColour", "_dynamicLightBrightness"];
```

## See also

[getLighting](../commands/getLighting.md) · Light Source Tutorial

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