Eden Editor: Custom Connections
Topic · Markdown · JSON · original wiki page
Since Arma 3 v2.10 it is possible to create custom connections.
Config
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 |
| condition1 | Simple expression | String |
| condition2 | Simple expression | String |
| Arma 3 v2.22 conditionScript1 | Scripted condition that needs to return a Boolean. It is only evaluated if simple expression script1 is used inside condition1. The entity is available in the _this variable. |
String |
| Arma 3 v2.22 conditionScript2 | Scripted condition that needs to return a Boolean. It is only evaluated if simple expression script2 is used inside condition2. The entity is available in the _this variable. |
String |
| property | Custom property name. Must be unique | String |
| data | Needs to be the same as the class name. It is passed to event handlers and used in add3DENConnection as well as inside the _data variable in the expression | String |
| color[] | Color | Array |
| cursor | Cursor that is shown when connecting entities | String |
| expression | _this is array of source entities, _target is target entity. The expression is called on the server after all other entity expressions. - _entity0: Object or String - The entity the connection started from - _entity1: Object or String - The second entity - _type: String - The data entry from the connection's config |
String |
| 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 |
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 |