---
name: "getDirVisual"
type: command
status: ok
groups: ["Object Manipulation", "Render Time Scope"]
arma3_since: "1.32"
locality: {"argument": "global", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/getDirVisual
revid: 330392
updated: 2022-09-06T17:01:40Z
---

# getDirVisual

*Command · Object Manipulation, Render Time Scope · Arma 3 v1.32*

Locality: arguments **global**

## Description

Returns object's heading in the range from 0 to 360 in render time scope.

> [!NOTE]
> **Arma 3:** The alternative syntax gets heading from one object or position to another object or position in render time scope, and should be used instead of [BIS_fnc_dirTo](../functions/BIS_fnc_dirTo.md).

## Syntax

### Syntax 1

```sqf
getDirVisual object
```

**Parameters:**

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

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

### Syntax 2

*since arma3 2.12*

```sqf
pos1 getDirVisual pos2
```

**Parameters:**

- `pos1`: [Object](../topics/Object.md), [Position2D](../topics/Position.md#introduction) or [Position3D](../topics/Position.md#introduction) - from where
- `pos2`: [Object](../topics/Object.md), [Position2D](../topics/Position.md#introduction) or [Position3D](../topics/Position.md#introduction) - to where

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

## Examples

### Example 1

```sqf
_dir = getDirVisual player;
```

### Example 2

```sqf
_azimuth = player getDirVisual tank;
```

## See also

[getDir](../commands/getDir.md) · [direction](../commands/direction.md)

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