---
name: "onShowNewObject"
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/onShowNewObject
revid: 363234
updated: 2024-03-26T10:51:09Z
---

# onShowNewObject

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

## Description

Defines an action performed when the user right clicks on the map and,selects New Object. Set to empty for default behavior. Command receives:,_pos array position,

> [!NOTE]
> Some Old Editor Command

## Syntax

```sqf
map onShowNewObject command
```

**Parameters:**

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

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

## Examples

### Example 1

-

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