---
name: "waypointAttachObject"
type: command
status: ok
groups: ["Waypoints"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/waypointAttachObject
revid: 377746
updated: 2026-01-03T00:57:58Z
---

# waypointAttachObject

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

## Description

Attaches a static object via its numeric ID to the given waypoint. Not to be confused with [synchronizeWaypoint](../commands/synchronizeWaypoint.md)!

> [!IMPORTANT]
> - The [main syntax](../commands/waypointAttachObject.md#syntax) doesn't work in Arma 3 anymore.
> - The [alternative syntax](../commands/waypointAttachObject.md#alternative_syntax) is (at least) available since Arma 2.

## Syntax

### Syntax 1

```sqf
waypoint waypointAttachObject objectID
```

**Parameters:**

- `waypoint`: Waypoint
- `objectID`: [Number](../topics/Number.md)

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

### Syntax 2

```sqf
waypoint waypointAttachObject object
```

**Parameters:**

- `waypoint`: Waypoint
- `object`: [Object](../topics/Object.md) - static object

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

## Examples

### Example 1

```sqf
[_grp, 2] waypointAttachObject 1234;
```

### Example 2

```sqf
private _wp = group player addWaypoint [[1907.5, 5746.5, 0.00144196], 0];
_wp waypointAttachObject ((waypointPosition _wp) nearestObject 66220);
```

## See also

[waypointAttachedObject](../commands/waypointAttachedObject.md) · [synchronizeWaypoint](../commands/synchronizeWaypoint.md)

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