---
name: "setDirection"
type: command
status: ok
groups: ["Locations"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/setDirection
revid: 376967
updated: 2026-01-01T05:58:28Z
---

# setDirection

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

## Description

Sets the orientation of a location. The location's area and map icon (if its type uses an icon) will be rotated to this orientation.

## Syntax

```sqf
location setDirection direction
```

**Parameters:**

- `location`: [Location](../topics/Location.md)
- `direction`: [Number](../topics/Number.md) in range 0..360

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

## Examples

### Example 1

```sqf
_location = createLocation ["VegetationPalm", getPos player, 200, 200];
_location setText "Benargee's Palm Tree";
_location setDirection 45;
```

## See also

[createLocation](../commands/createLocation.md) · [setText](../commands/setText.md) · [direction](../commands/direction.md)

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