---
name: "hideSelection"
type: command
status: ok
groups: ["Object Manipulation"]
arma3_since: "1.58"
locality: {"argument": "local", "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/hideSelection
revid: 330039
updated: 2022-08-15T15:23:51Z
---

# hideSelection

*Command · Object Manipulation · Arma 3 v1.58*

Locality: arguments **local** · effect **global**

## Description

Hides or shows the [simple object](../commands/createSimpleObject.md)'s provided selection.

## Syntax

```sqf
object hideSelection [selection, hidden]
```

**Parameters:**

- `object`: [Object](../topics/Object.md) - simple object
- `selection`: [String](../topics/String.md) - selection name
- `hidden`: [Boolean](../topics/Boolean.md) - [true](../commands/true.md) to hide, [false](../commands/false.md) to show

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

## Examples

### Example 1

```sqf
_simpleObject hideSelection ["some_selection", true];
```

## See also

[createSimpleObject](../commands/createSimpleObject.md) · [selectionNames](../commands/selectionNames.md) · [allLODs](../commands/allLODs.md)

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