---
name: "get3DENSelected"
type: command
status: ok
groups: ["Eden Editor"]
arma3_since: "1.56"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/get3DENSelected
revid: 377086
updated: 2026-01-01T09:45:11Z
---

# get3DENSelected

*Command · Eden Editor · Arma 3 v1.56*

## Description

Returns an array of all selected Eden Editor Entities of the given type.

If a wrong type is provided, `[[], [], [], [], [], []]` is returned and an error message is shown.

## Syntax

```sqf
get3DENSelected type
```

**Parameters:**

- `type`: [String](../topics/String.md) - entity type, can be one of:
  - `"object"`
  - `"group"`
  - `"trigger"`
  - `"logic"`
  - `"waypoint"`
  - `"marker"`
  - `"layer"`
  - `"comment"`
  - `""` - everything but "layer" and "comment"

**Returns:** [Array](../topics/Array.md) of Eden Entity

## Examples

### Example 1

```sqf
get3DENSelected "";

/*
[
    [B Alpha 2-1:1],                // objects
    [B Alpha 2-1],                    // groups
    [164494: <no shape>],            // triggers
    [<No center> Charlie 1-2:4],    // logic
    [[B Alpha 2-1,0]],                // waypoints
    ["Hotel_Whiskey"]                // markers
]
*/
```

### Example 2

```sqf
get3DENSelected "object"; // [B Alpha 2-1:1]
```

## See also

[all3DENEntities](../commands/all3DENEntities.md) · [get3DENMouseOver](../commands/get3DENMouseOver.md) · [delete3DENEntities](../commands/delete3DENEntities.md)

<sub>Source: [BI Community Wiki — get3DENSelected](https://community.bistudio.com/wiki/get3DENSelected) (revision 377086).</sub>
