Eden Editor: Custom Connections

From Bohemia Interactive Community

Since Arma 3 logo black.png 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 Arma 3 logo black.png 2.22 Scripted condition that needs to return a Boolean String
conditionScript2 Arma 3 logo black.png 2.22 Scripted condition that needs to return a Boolean 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

Condition1/2

Simple expression conditions

🚧
TODO: ⧼Do Stuff⧽