---
name: "lightDetachObject"
type: command
status: ok
groups: ["Lights"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/lightDetachObject
revid: 309932
updated: 2022-05-05T12:16:58Z
---

# lightDetachObject

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

## Description

Detach light from object.

## Syntax

```sqf
lightDetachObject light
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
lightDetachObject _light;
```

## See also

[setLightAmbient](../commands/setLightAmbient.md) · [setLightBrightness](../commands/setLightBrightness.md) · [lightAttachObject](../commands/lightAttachObject.md) · [setLightColor](../commands/setLightColor.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)

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