---
name: "get3DENEntity"
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/get3DENEntity
revid: 378362
updated: 2026-04-03T16:26:44Z
---

# get3DENEntity

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

## Description

Returns [Eden Entity](../topics/Eden_Entity.md) based on its [Eden ID](../topics/Eden_ID.md).

## Syntax

```sqf
get3DENEntity ID
```

**Parameters:**

- `ID`: [Number](../topics/Number.md) - [Eden ID](../topics/Eden_ID.md)

**Returns:** [Eden Entity](../topics/Eden_Entity.md) or [Number](../topics/Number.md)

- If the *ID* points to an [Eden Entity](../topics/Eden_Entity.md) the entity is returned
- If it points to a [Eden Editor: Layer](../topics/Eden_Editor~3A_Layer.md) or [Eden Editor: Comment](../topics/Eden_Editor~3A_Comment.md) the *ID* is returned
- If no entity with given *ID* exists `-1` is returned

## Examples

### Example 1

```sqf
myEntity = get3DENEntity 1;
```

## See also

[get3DENEntityID](../commands/get3DENEntityID.md)

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