Eden Editor: Custom Connections: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (added cat)
m (Some wiki formatting)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
Since {{GVI|Arma3|2.10}} it is possible to create custom connections.
Since {{GVI|Arma3|2.10}} it is possible to create custom connections.
{{Feature|informative|A custom connection will not automatically be added to the context menu. See [[Eden Editor: Entity Context Menu| Entity Context Menu]] for a guide.}}


{{Wiki|WIP}}


= Config =
== Config ==


<syntaxhighlight lang="cpp">class Cfg3DEN
<syntaxhighlight lang="cpp">
class Cfg3DEN
{
{
    class Connections
class Connections
    {
{
        class TAG_CustomConnection
class TAG_CustomConnection
        {
{
            displayName = "Set Custom Connection";
displayName = "Set Custom Connection";
            condition1 = "marker";
condition1 = "marker";
            condition2 = "objectEmpty * objectAI";
condition2 = "objectEmpty * objectAI";
            property = "TAG_CustomConnection";
property = "TAG_CustomConnection";
            color[] = {1,0,1,1};
color[] = { 1, 0, 1, 1 };
            cursor = "3DENConnectSync";
cursor = "3DENConnectSync";
            expression = "hint str [_this,_target];";
expression = "hint str [_this,_target];";
        };
};
    };
};
};</syntaxhighlight>
};
</syntaxhighlight>
 
=== Properties ===


== Properties ==
{| class="wikitable"
{| class="wikitable"
! Property !! Description !! Data type
! Property !! Description !! Data type

Latest revision as of 15:00, 31 October 2023

Since Arma 3 logo black.png2.10 it is possible to create custom connections.

A custom connection will not automatically be added to the context menu. See Entity Context Menu for a guide.


Config

class Cfg3DEN
{
	class Connections
	{
		class TAG_CustomConnection
		{
			displayName = "Set Custom Connection";
			condition1 = "marker";
			condition2 = "objectEmpty * objectAI";
			property = "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 String
condition2 Simple expression String
property Custom property name. Must be unique String
color[] Colour 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