---
name: "setType"
type: command
status: ok
groups: ["Locations"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/setType
revid: 323021
updated: 2022-06-28T21:43:07Z
---

# setType

*Command · Locations · Arma 3 v0.50 · introduced in Armed Assault v1.08*

## Description

Changes a location to the specified class. Location classes are defined in CfgLocationTypes.

## Syntax

```sqf
location setType name
```

**Parameters:**

- `location`: [Location](../topics/Location.md)
- `name`: [String](../topics/String.md)

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

## Examples

### Example 1

```sqf
myLocation setType "RockArea";
```

## See also

[type](../commands/type.md)

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