---
name: "sizeOf"
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/sizeOf
revid: 349136
updated: 2023-11-08T14:49:45Z
---

# sizeOf

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

## Description

Returns the diameter of bounding sphere of the object of given classname in meters. If you need to estimate the size of the object more precisely, use [boundingBox](../commands/boundingBox.md) or [boundingBoxReal](../commands/boundingBoxReal.md).

> [!IMPORTANT]
> At least one object of the given classname has to be present in the current mission otherwise zero will be returned.

## Syntax

```sqf
sizeOf classname
```

**Parameters:**

- `classname`: [String](../topics/String.md)

**Returns:** [Number](../topics/Number.md) - size returned is usually bigger than the biggest size of the object along any of the axes. For example if object is 10 x 4 x 5 the [sizeOf](../commands/sizeOf.md) value returned expected to be around 10.

## Examples

### Example 1

```sqf
_dimension = sizeOf "M1Abrams"; // Returns 10.7833
```

## See also

[boundingBox](../commands/boundingBox.md) · [boundingBoxReal](../commands/boundingBoxReal.md) · [boundingCenter](../commands/boundingCenter.md)

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