---
name: "setEditorObjectScope"
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/setEditorObjectScope
revid: 363242
updated: 2024-03-26T10:51:18Z
---

# setEditorObjectScope

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

## Description

This command defines the level of access a user has to editor objects.

"objects" is an array of either [Editor Objects](../topics/Editor_Object.md) (eg ["_unit_0"]) or actual [Game Objects](../topics/Object.md) (eg [player]). If the array is empty then the command will automatically parse all editor objects.

"editorType" is the editor type to effect (eg "unit", "vehicle", "center") or "" for all types.

"condition" is an executable string that must evaluate to true or false. If true, the scope of the evaluated editor object will be modified. "_x" can be used in the string as reference to the ingame representation of the currently processed array member.

"scope" is one of "HIDE", "VIEW", "SELECT", "LINKTO", "LINKFROM", "ALLNODRAG", "ALLNOTREE", "ALLNOCOPY", "ALLNOSELECT" or "ALL".

"subordinatesAlso" is a boolean value. If true then subordinates in the editor will be assigned the same scope as the parent.

> [!NOTE]
> Some Old Editor Command

## Syntax

```sqf
map setEditorObjectScope [objects, editorType, condition, scope, subordinatesAlso]
```

**Parameters:**

- `map`: [Control](../topics/Control.md)
- `[objects, editorType, condition, scope, subordinatesAlso]`: [Array](../topics/Array.md)
- `objects`: [Array](../topics/Array.md) of [Object](../topics/Object.md)s and/or [Editor Objects](../topics/Editor_Object.md)
- `editorType`: [String](../topics/String.md)
- `condition`: [String](../topics/String.md)
- `scope`: [String](../topics/String.md)
- `subordinatesAlso`: [Boolean](../topics/Boolean.md)

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

## Examples

### Example 1

```sqf
_map setEditorObjectScope [[],"vehicle", "side effectiveCommander _x != side player", "HIDE", false];
```

### Example 2

```sqf
((findDisplay 128) displayCtrl 51) setEditorObjectScope [["_unit_0"], "", "true", "ALLNODRAG", false];
```

## See also

[addEditorObject](../commands/addEditorObject.md) · [deleteEditorObject](../commands/deleteEditorObject.md) · [findEditorObject](../commands/findEditorObject.md) · [getEditorObjectScope](../commands/getEditorObjectScope.md) · [insertEditorObject](../commands/insertEditorObject.md)

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