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";
condition2 = "objectEmpty * objectAI";
property = "TAG_CustomConnection";
data = "TAG_CustomConnection";
color[] = { 1, 0, 1, 1 };
cursor = "3DENConnectSync";
expression = "hint str [_this, _target];";
};
};
};
Properties
| Property | Description | Data type |
|---|---|---|
| displayName | Display name of the connection shown in the context menu | String |
| condition1 | Simple expression and result of conditionSript1 | String |
| condition2 | Simple expression and result of conditionSript2 | 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 | String |
| color[] | Color | Array |
| cursor | Cursor that is shown when connecting entities | String |
| expression | _this is array of source entities, _target is target entity. Expression is called on the server. After all other entity expressions. | String |
Simple Expressions
Expressions available in 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 |
| Script1 | Scripted condition scriptedCondition1 |
| Script2 | Scripted condition scriptedCondition2 |