---
name: "setEditorMode"
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/setEditorMode
revid: 363278
updated: 2024-03-26T10:51:48Z
---

# setEditorMode

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

## Description

Sets map mode to MAP,3D or PREVIEW.

> [!NOTE]
> Some Old Editor Command

## Syntax

```sqf
map setEditorMode mode
```

**Parameters:**

- `map`: [Control](../topics/Control.md)
- `mode`: [String](../topics/String.md)

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

## Examples

### Example 1

-

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