---
name: "typeOf"
type: command
status: ok
groups: ["Object Manipulation"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/typeOf
revid: 378246
updated: 2026-03-21T09:42:52Z
---

# typeOf

*Command · Object Manipulation · Arma 3 v0.50 · introduced in Operation Flashpoint v1.90*

## Description

Returns the class name of given target.

## Syntax

```sqf
typeOf target
```

**Parameters:**

- `target`: [Object](../topics/Object.md), since Arma 3 v2.22 [Control](../topics/Control.md), [Display](../topics/Display.md)

**Returns:** [String](../topics/String.md) - config class name, or empty string if *target* does not have a class

## Examples

### Example 1

```sqf
if (typeOf vehicle player == "B_Heli_Light_01_armed_F") then { hint "Player is in a AH-9 Pawnee"; };
```

### Example 2

```sqf
// Since 2.22
typeOf (findDisplay 313); // "Display3DEN"
```

## See also

[countType](../commands/countType.md) · [isKindOf](../commands/isKindOf.md) · [configOf](../commands/configOf.md) · [ctrlClassName](../commands/ctrlClassName.md)

## Community notes

**Hardrock** — 2006-08-04

Try using this on an object pre-placed in the mission editor such as a house:

```sqf
hint typeOf _object; // Shows the class name (XXX)
```

Now place an object in the editor, save the map, and open up the Mission.sqm. Find the line: vehicle = "XXX", and replace XXX with the name of the object that you found above.
Save it, and load the map. This method is no longer available since Armed Assault.

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