---
name: "addEditorObject"
type: command
status: ok
groups: ["Game 2 Editor"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/addEditorObject
revid: 353335
updated: 2024-03-15T17:11:50Z
---

# addEditorObject

*Command · Game 2 Editor · Arma 3 v0.50 · introduced in Arma 2 v1.00*

## Description

Add an object to the editor and assign arguments. Create script is,called with _new equal to true. Returns the ID of the new EditorObject.,Subtype class is optional.

> [!NOTE]
> Some Old Editor Command

## Syntax

```sqf
map addEditorObject [type,[name1,value1,...],subtype class]
```

**Parameters:**

- `map`: [Control](../topics/Control.md)
- `[type,[name1,value1,...],subtype class]`: [Array](../topics/Array.md)

**Returns:** [String](../topics/String.md)

## Examples

### Example 1

-

## See also

Game 2 Editor

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