---
name: "Eden Editor: Custom Connections"
type: topic
source: https://community.bistudio.com/wiki/Eden_Editor:_Custom_Connections
revid: 379540
updated: 2026-10-31T10:44:33Z
---

# Eden Editor: Custom Connections

Since Arma 3 v2.10 it is possible to create custom connections.

### Config

```cpp
class Cfg3DEN
{
    class Connections
    {
        class TAG_CustomConnection
        {
            displayName = "Set Custom Connection";
            condition1 = "marker * script1";
            condition2 = "objectAI";
            conditionScript1 = "markerType _this == 'hd_dot'";
            property = "TAG_CustomConnection";
            data = "TAG_CustomConnection";
            color[] = { 1, 0, 1, 1 };
            cursor = "3DENConnectSync";
            expression = "hint str [_entity0, _entity1, _type];";
        };
    };
};
```

#### Properties

| Property | Description | Data type |
|---|---|---|
| displayName | Display name of the connection shown in the context menu | [String](../topics/String.md) |
| condition1 | [Simple expression](../topics/Eden_Editor~3A_Custom_Connections.md#simple-expressions) | [String](../topics/String.md) |
| condition2 | [Simple expression](../topics/Eden_Editor~3A_Custom_Connections.md#simple-expressions) | [String](../topics/String.md) |
| Arma 3 v2.22 conditionScript1 | Scripted condition that needs to return a [Boolean](../topics/Boolean.md). It is only evaluated if simple expression `script1` is used inside `condition1`. The entity is available in the `_this` variable. | [String](../topics/String.md) |
| Arma 3 v2.22 conditionScript2 | Scripted condition that needs to return a [Boolean](../topics/Boolean.md). It is only evaluated if simple expression `script2` is used inside `condition2`. The entity is available in the `_this` variable. | [String](../topics/String.md) |
| property | Custom property name. Must be unique | [String](../topics/String.md) |
| data | Needs to be the same as the class name. It is passed to event handlers and used in [add3DENConnection](../commands/add3DENConnection.md) as well as inside the _data variable in the expression | [String](../topics/String.md) |
| color[] | Color | [Array](../topics/Array.md) |
| cursor | Cursor that is shown when connecting entities | [String](../topics/String.md) |
| expression | *_this* is array of source entities, *_target* is target entity. The expression is [called](../commands/call.md) on the server after all other entity expressions.<br>- _entity0: [Object](../topics/Object.md) or [String](../topics/String.md) - The entity the connection started from<br>- _entity1: [Object](../topics/Object.md) or [String](../topics/String.md) - The second entity<br>- _type: [String](../topics/String.md) - The `data` entry from the connection's config | [String](../topics/String.md) |
| value | An internal bit flag. Set it to 0 to always show the item in the root of the config menu. Otherwise ignore it | [Number](../topics/Number.md) |

### Simple Expressions

Simple expressions for custom connections.

| Condition | Description |
|---|---|
| Object | Any object |
| ObjectBrain | Object with simulation "soldier" or "UAVpilot" |
| ObjectVehicle | Any vehicle |
| Group | Any group |
| Trigger | Any trigger |
| Waypoint | Any waypoint |
| Logic | Any logic or system |
| Marker | Any marker |
| Arma 3 v2.22 Script1 | Contains sqf condition defined in `conditionScript1` property |
| Arma 3 v2.22 Script2 | Contains sqf condition defined in `conditionScript2` property |

<sub>Source: [BI Community Wiki — Eden Editor: Custom Connections](https://community.bistudio.com/wiki/Eden_Editor:_Custom_Connections) (revision 379540).</sub>
