---
name: "getObjectScale"
type: command
status: ok
groups: ["Object Manipulation"]
arma3_since: "2.02"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/getObjectScale
revid: 364985
updated: 2024-07-04T19:58:04Z
---

# getObjectScale

*Command · Object Manipulation · Arma 3 v2.02*

## Description

Returns the render scale of an object relative to the original model.

## Syntax

```sqf
getObjectScale object
```

**Parameters:**

- `object`: [Object](../topics/Object.md) - object to return scale of. Can also be a [terrain object](../commands/nearestTerrainObjects.md).

**Returns:** [Number](../topics/Number.md) - scale relative to the original model

## Examples

### Example 1

```sqf
private _objectScale = getObjectScale MyObject;

if (_objectScale == 1) exitWith { systemChat "Original scale"; };

if (_objectScale > 1) then
{
    systemChat "Scaled up";
}
else
{
    systemChat "Scaled down";
};
```

## See also

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

## Community notes

**Sa-Matra** — 2024-06-10

Some objects can be scaled by XYZ individually by the engine. Rope segments are one example, they only scale by Z and this command returns average of all dimensions giving no real picture of the scale. You can get real scale of each dimension with:

```sqf
[vectorMagnitude vectorSideVisual _seg, vectorMagnitude vectorDirVisual _seg, vectorMagnitude vectorUpVisual _seg]
```

for rope segment it will be something like `[1,1,1.54066]`

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