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

# lightAttachObject

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

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

## Description

Attach light to given object at given position on object.

## Syntax

```sqf
light lightAttachObject [object, position]
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
myLight lightAttachObject [myVehicle, [-0.5,-0.25,1]];
```

## See also

[setLightAmbient](../commands/setLightAmbient.md) · [setLightBrightness](../commands/setLightBrightness.md) · [lightDetachObject](../commands/lightDetachObject.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) · [attachObject](../commands/attachObject.md) · [attachTo](../commands/attachTo.md) · [attachedObjects](../commands/attachedObjects.md) · [attachedTo](../commands/attachedTo.md) · [waypointAttachVehicle](../commands/waypointAttachVehicle.md) · [waypointAttachedVehicle](../commands/waypointAttachedVehicle.md) · [triggerAttachVehicle](../commands/triggerAttachVehicle.md) · [attachedObject](../commands/attachedObject.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]];
```

---

**Waffle SS.** — 2015-03-31

When attached, movement is slow to update (jumpy).  Use [attachTo](../commands/attachTo.md) when attaching a light to moving objects.

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