---
name: "BIS_fnc_rotateMarker"
type: function
status: ok
groups: ["Map and Markers"]
arma3_since: "1.78"
locality: {"argument": "global", "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_rotateMarker
revid: 348885
updated: 2023-11-08T14:39:49Z
---

# BIS_fnc_rotateMarker

*Function · Map and Markers · Arma 3 v1.78*

Locality: arguments **global** · effect **global** · executed with **spawn**

## Description

Rotating a marker to new azimuth, using shortest turn, clockwise or anticlockwise movement.

## Syntax

```sqf
[marker, newAzimuth, absoluteOrRelativ, shortestTurn, duraton] spawn BIS_fnc_rotateMarker
```

**Parameters:**

- `marker`: [String](../topics/String.md) - marker to rotate
- `newAzimuth`: [Number](../topics/Number.md) - new azimuth
- `absoluteOrRelativ`: [Boolean](../topics/Boolean.md) - (Optional, default [true](../commands/true.md)) defines if the azimuth is absolute [true](../commands/true.md) or relative [false](../commands/false.md)
- `shortestTurn`: [Number](../topics/Number.md) - (Optional, default 0) 0 - shortest turn (default, if used with relative dir, counter clockwise is used)
  1 - force clockwise
  2 - force counter clockwise
- `duraton`: [Number](../topics/Number.md) - (Optional, default 2) duration for the complete rotation in seconds

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

## Examples

### Example 1

```sqf
["BIS_marker",90] spawn BIS_fnc_rotateMarker;
```

### Example 2

```sqf
["BIS_marker",90,false,2,5] spawn BIS_fnc_rotateMarker;
```

## See also

[BIS_fnc_blinkMarker](../functions/BIS_fnc_blinkMarker.md) · [BIS_fnc_resizeMarker](../functions/BIS_fnc_resizeMarker.md) · [BIS_fnc_moveMarker](../functions/BIS_fnc_moveMarker.md)

<sub>Source: [BI Community Wiki — BIS fnc rotateMarker](https://community.bistudio.com/wiki/BIS_fnc_rotateMarker) (revision 348885).</sub>
