---
name: "setLightAmbient"
type: command
status: ok
groups: ["Lights"]
arma3_since: "0.50"
locality: {"argument": "local", "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/setLightAmbient
revid: 377373
updated: 2026-01-02T06:42:43Z
---

# setLightAmbient

*Command · Lights · Arma 3 v0.50 · introduced in Operation Flashpoint: Elite v1.00*

Locality: arguments **local** · effect **local**

## Description

Set ambient color of light. This includes surfaces that **face away** from the light, unlike [setLightColor](../commands/setLightColor.md).

## Syntax

```sqf
light setLightAmbient color
```

**Parameters:**

- `light`: [Object](../topics/Object.md)
- `color`: [Color (RGB)](../topics/Color.md)

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
myLight setLightAmbient [0.5,0,0]; // produces red light around the origin source
```

## See also

[setLightColor](../commands/setLightColor.md) · [setLightBrightness](../commands/setLightBrightness.md) · [lightAttachObject](../commands/lightAttachObject.md) · [lightDetachObject](../commands/lightDetachObject.md) · [setLightIntensity](../commands/setLightIntensity.md) · [setLightAttenuation](../commands/setLightAttenuation.md) · [setLightUseFlare](../commands/setLightUseFlare.md) · [setLightFlareSize](../commands/setLightFlareSize.md) · [setLightFlareMaxDistance](../commands/setLightFlareMaxDistance.md) · [setLightDayLight](../commands/setLightDayLight.md)

## Community notes

**Feersum** — 2006-12-01

Light can be created with command [createVehicleLocal](../commands/createVehicleLocal.md) with special vehicle class "#lightpoint".

For example:

```sqf
_light = "#lightpoint" createVehicleLocal pos;
_light setLightBrightness 1.0;
_light setLightAmbient [0.0, 1.0, 0.0];
_light setLightColor [0.0, 1.0, 0.0];
_light lightAttachObject [_object, [0,0,0]];
```

---

**ColonelSandersLite** — 2007-08-17

To clarify:

- [setLightAmbient](../commands/setLightAmbient.md) - Terrain and surrounding objects are bathed in this colour.
- [setLightColor](../commands/setLightColor.md) - Controls the "haze" seen around the lightsource (ex flares).

---

**Ffur2007slx2_5** — 2014-03-25

When both [setLightAmbient](../commands/setLightAmbient.md) and [setLightColor](../commands/setLightColor.md) were [0,0,0], there won’t be any visual presentation on the light source.

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