{"name":"get3DENSelected","operator":null,"title":"get3DENSelected","type":"command","url":"https://community.bistudio.com/wiki/get3DENSelected","revid":377086,"updated":"2026-01-01T09:45:11Z","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":"Returns an array of all selected Eden Editor Entities of the given type.\n\nIf a wrong type is provided, `[[], [], [], [], [], []]` is returned and an error message is shown.","syntaxes":[{"syntax":"get3DENSelected type","since":null,"effect":null,"exec":null,"params":[{"name":"type","type":"String","optional":false,"default":null,"description":"entity type, can be one of:\n- `\"object\"`\n- `\"group\"`\n- `\"trigger\"`\n- `\"logic\"`\n- `\"waypoint\"`\n- `\"marker\"`\n- `\"layer\"`\n- `\"comment\"`\n- `\"\"` - everything but \"layer\" and \"comment\"","types":["String"],"since":null,"text":"type: String - entity type, can be one of:\n- `\"object\"`\n- `\"group\"`\n- `\"trigger\"`\n- `\"logic\"`\n- `\"waypoint\"`\n- `\"marker\"`\n- `\"layer\"`\n- `\"comment\"`\n- `\"\"` - everything but \"layer\" and \"comment\""}],"returns":{"type":"Array of Eden Entity","types":["Array","Eden Entity"],"description":null,"text":"Array of Eden Entity"},"form":"unary","operator":null,"left":null,"right":{"text":"type","types":["String"]}}],"examples":[{"text":"```sqf\nget3DENSelected \"\";\n\n/*\n[\n    [B Alpha 2-1:1],                // objects\n    [B Alpha 2-1],                    // groups\n    [164494: <no shape>],            // triggers\n    [<No center> Charlie 1-2:4],    // logic\n    [[B Alpha 2-1,0]],                // waypoints\n    [\"Hotel_Whiskey\"]                // markers\n]\n*/\n```","code":["get3DENSelected \"\";\n\n/*\n[\n\t[B Alpha 2-1:1],\t\t\t\t// objects\n\t[B Alpha 2-1],\t\t\t\t\t// groups\n\t[164494: <no shape>],\t\t\t// triggers\n\t[<No center> Charlie 1-2:4],\t// logic\n\t[[B Alpha 2-1,0]],\t\t\t\t// waypoints\n\t[\"Hotel_Whiskey\"]\t\t\t\t// markers\n]\n*/"]},{"text":"```sqf\nget3DENSelected \"object\"; // [B Alpha 2-1:1]\n```","code":["get3DENSelected \"object\"; // [B Alpha 2-1:1]"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["all3DENEntities","get3DENMouseOver","delete3DENEntities"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Eden Editor","Introduced with Arma 3 version 1.56","Scripting Commands"]}