---
name: "add3DENConnection"
type: command
status: ok
groups: ["Eden Editor"]
arma3_since: "1.56"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/add3DENConnection
revid: 378561
updated: 2026-05-08T15:48:16Z
---

# add3DENConnection

*Command · Eden Editor · Arma 3 v1.56*

## Description

Connect entities together. Be aware to select the correct type of Eden Entities for the connection type.

## Syntax

```sqf
add3DENConnection [type, from, to]
```

**Parameters:**

- `type`: [String](../topics/String.md) - connection class from `"Cfg3DEN" >> "Connections"`:
  - `Group`
  - `RandomStart`
  - `Sync`
  - `TriggerOwner`
  - `WaypointActivation`
- `from`: [Array](../topics/Array.md) of Eden Entities - entities which are being connected
- `to`: Eden Entity - entity to which entities will be connected to

**Returns:** [Boolean](../topics/Boolean.md) - [true](../commands/true.md) If the connection was made

## Examples

### Example 1

```sqf
add3DENConnection ["RandomStart", get3DENSelected "Object", "marker_0"];// Set random start on marker "marker_0" for all selected objects.
```

### Example 2

```sqf
// Group all selected units to the first selected group
private _group = get3DENSelected "Group" param [0, grpNull];
private _units = get3DENSelected "Objects";

add3DENConnection ["Group", _units, _group];
```

## See also

[remove3DENConnection](../commands/remove3DENConnection.md) · [get3DENConnections](../commands/get3DENConnections.md)

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