---
name: "getObjectType"
type: command
status: ok
groups: ["Object Manipulation"]
arma3_since: "1.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/getObjectType
revid: 348931
updated: 2023-11-08T14:44:06Z
---

# getObjectType

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

## Description

Returns object type as a number:
- 1 - Primary - Normal object placed in Visitor, part of landscape
- 2 - Network - Road placed in Visitor, part of landscape
- 4 - Temporary - Temporary object (like tracks)
- 8 - TypeVehicle - Some entity added by game
- 16 - TypeTempVehicle - Temporary entity
- 32 - LandDecal - Land decal

## Syntax

```sqf
getObjectType object
```

**Parameters:**

- `object`: [Object](../topics/Object.md)

**Returns:** [Number](../topics/Number.md) - object type

## Examples

### Example 1

```sqf
_objType = getObjectType player;
```

### Example 2

```sqf
_objType = getObjectType cursorObject;
```

## See also

[allObjects](../commands/allObjects.md) · [getObjectFOV](../commands/getObjectFOV.md) · [cursorObject](../commands/cursorObject.md) · [cursorTarget](../commands/cursorTarget.md) · [createSimpleObject](../commands/createSimpleObject.md) · [allMissionObjects](../commands/allMissionObjects.md) · [setObjectViewDistance](../commands/setObjectViewDistance.md) · [getObjectViewDistance](../commands/getObjectViewDistance.md) · [objectParent](../commands/objectParent.md) · object

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