---
name: "setObjectMaterialGlobal"
type: command
status: ok
groups: ["Object Manipulation"]
arma3_since: "1.54"
locality: {"argument": "global", "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/setObjectMaterialGlobal
revid: 370027
updated: 2024-10-27T23:19:13Z
---

# setObjectMaterialGlobal

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

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

## Description

Set the material of the given selection on all computers in a network session.

## Syntax

```sqf
obj setObjectMaterialGlobal [selection, material]
```

**Parameters:**

- `obj`: [Object](../topics/Object.md)
- `selection`: [Number](../topics/Number.md) or Arma 3 v2.10 [String](../topics/String.md)
- `material`: [String](../topics/String.md) - material path. Since Arma 3 v2.20 using **"#reset"** would reset to default material.

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

## Examples

### Example 1

```sqf
player setObjectMaterialGlobal [0, "A3\Structures_F\Data\Windows\window_set.rvmat"];
```

## See also

[setObjectTexture](../commands/setObjectTexture.md) · [setObjectTextureGlobal](../commands/setObjectTextureGlobal.md) · [getObjectTextures](../commands/getObjectTextures.md) · [setObjectMaterial](../commands/setObjectMaterial.md) · [getObjectMaterials](../commands/getObjectMaterials.md)

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