Eden Editor: Custom Connections
Category: Eden Editor: Modding
Since
2.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";
scriptedCondition1 = "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 |
| conditionScript1 | String | |
| conditionScript2 | 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. | 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 |
| Contains sqf condition defined in scriptedCondition1 property | |
| Contains sqf condition defined in scriptedCondition2 property |