{"name":"add3DENConnection","operator":null,"title":"add3DENConnection","type":"command","url":"https://community.bistudio.com/wiki/add3DENConnection","revid":378561,"updated":"2026-05-08T15:48:16Z","groups":["Eden Editor"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.56"}],"since":{"game":"arma3","name":"Arma 3","version":"1.56"},"arma3_since":"1.56","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Connect entities together. Be aware to select the correct type of Eden Entities for the connection type.","syntaxes":[{"syntax":"add3DENConnection [type, from, to]","since":null,"effect":null,"exec":null,"params":[{"name":"type","type":"String","optional":false,"default":null,"description":"connection class from `\"Cfg3DEN\" >> \"Connections\"`:\n- `Group`\n- `RandomStart`\n- `Sync`\n- `TriggerOwner`\n- `WaypointActivation`","types":["String"],"since":null,"text":"type: String - connection class from `\"Cfg3DEN\" >> \"Connections\"`:\n- `Group`\n- `RandomStart`\n- `Sync`\n- `TriggerOwner`\n- `WaypointActivation`"},{"name":"from","type":"Array of Eden Entities","optional":false,"default":null,"description":"entities which are being connected","types":["Array","Eden Entity"],"since":null,"text":"from: Array of Eden Entities - entities which are being connected"},{"name":"to","type":"Eden Entity","optional":false,"default":null,"description":"entity to which entities will be connected to","types":["Eden Entity"],"since":null,"text":"to: Eden Entity - entity to which entities will be connected to"}],"returns":{"type":"Boolean","types":["Boolean"],"description":"true If the connection was made","text":"Boolean - true If the connection was made"},"form":"unary","operator":null,"left":null,"right":{"text":"[type, from, to]","types":["Array"]}}],"examples":[{"text":"```sqf\nadd3DENConnection [\"RandomStart\", get3DENSelected \"Object\", \"marker_0\"];// Set random start on marker \"marker_0\" for all selected objects.\n```","code":["add3DENConnection [\"RandomStart\", get3DENSelected \"Object\", \"marker_0\"];// Set random start on marker \"marker_0\" for all selected objects."]},{"text":"```sqf\n// Group all selected units to the first selected group\nprivate _group = get3DENSelected \"Group\" param [0, grpNull];\nprivate _units = get3DENSelected \"Objects\";\n\nadd3DENConnection [\"Group\", _units, _group];\n```","code":["// Group all selected units to the first selected group\nprivate _group = get3DENSelected \"Group\" param [0, grpNull];\nprivate _units = get3DENSelected \"Objects\";\n\nadd3DENConnection [\"Group\", _units, _group];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["remove3DENConnection","get3DENConnections"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Eden Editor","Introduced with Arma 3 version 1.56","Scripting Commands"]}