---
name: "airDensityRTD"
type: command
status: ok
groups: ["RTD"]
arma3_since: "1.34"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/airDensityRTD
revid: 318555
updated: 2022-05-13T09:21:05Z
---

# airDensityRTD

*Command · RTD · Arma 3 v1.34*

## Description

Returns air density in given altitude. 

> [!NOTE]
> **afm:** For this command to have any effect, the Advanced Flight Model (AFM) has to be enabled. AFM status can be checked with [difficultyEnabledRTD](../commands/difficultyEnabledRTD.md).

## Syntax

```sqf
airDensityRTD altitude
```

**Parameters:**

- `altitude`: [Number](../topics/Number.md)

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

## Examples

### Example 1

```sqf
_density = airDensityRTD 0; // returns 1.22406
```

### Example 2

```sqf
_density = airDensityRTD 1000; // Returns 1.11096
```

## See also

[rotorsForcesRTD](../commands/rotorsForcesRTD.md) · [rotorsRpmRTD](../commands/rotorsRpmRTD.md) · [weightRTD](../commands/weightRTD.md) · [wingsForcesRTD](../commands/wingsForcesRTD.md)

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