---
name: "get3DENLayerEntities"
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/get3DENLayerEntities
revid: 369163
updated: 2024-09-03T10:34:40Z
---

# get3DENLayerEntities

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

## Description

Return all entities and sub-layer in Eden Entity layer. In order to get all layer entities during a scenario use [getMissionLayerEntities](../commands/getMissionLayerEntities.md).

## Syntax

```sqf
get3DENLayerEntities layerID
```

**Parameters:**

- `layerID`: [Number](../topics/Number.md) - layer ID as returned by [add3DENLayer](../commands/add3DENLayer.md) command

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

## Examples

### Example 1

```sqf
_myLayer = -1 add3DENLayer "CTRG";
player set3DENLayer _myLayer;
_entities = get3DENLayerEntities _myLayer;
```

## See also

[add3DENLayer](../commands/add3DENLayer.md) · [remove3DENLayer](../commands/remove3DENLayer.md) · [set3DENLayer](../commands/set3DENLayer.md) · [getMissionLayerEntities](../commands/getMissionLayerEntities.md) · [getMissionLayers](../commands/getMissionLayers.md)

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