---
name: "drawArrow"
type: command
status: ok
groups: ["GUI Control - Map"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/drawArrow
revid: 377545
updated: 2026-01-02T06:54:38Z
---

# drawArrow

*Command · GUI Control - Map · Arma 3 v0.50 · introduced in Armed Assault v1.00*

## Description

Draws a single line arrow on the map.
As this command needs to be called every frame, it is preferable using the [onDraw](../topics/User_Interface_Event_Handlers.md#ondraw) UI Event Handler.
To draw a color filled arrow of custom shape see [BIS_fnc_drawArrow](../functions/BIS_fnc_drawArrow.md).

## Syntax

```sqf
map drawArrow [from, to, color]
```

**Parameters:**

- `map`: [Control](../topics/Control.md)
- `from`: [Object](../topics/Object.md) or [Position2D](../topics/Position.md#introduction) or [Position3D](../topics/Position.md#introduction) - arrow start position
- `to`: [Object](../topics/Object.md) or [Position2D](../topics/Position.md#introduction) or [Position3D](../topics/Position.md#introduction) - arrow end position
- `color`: [Array](../topics/Array.md) - arrow color in format [r,g,b,a]

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

## Examples

### Example 1

```sqf
findDisplay 12 displayCtrl 51 ctrlAddEventHandler ["Draw", 
{
    _this select 0 drawArrow [
        player,
        player getRelPos [100, 0],
        [1,0,0,1]
    ];
}];
```

## See also

[drawEllipse](../commands/drawEllipse.md) · [drawIcon](../commands/drawIcon.md) · [drawLine](../commands/drawLine.md) · [drawRectangle](../commands/drawRectangle.md) · [drawPolygon](../commands/drawPolygon.md) · [drawTriangle](../commands/drawTriangle.md) · [drawXPolygon](../commands/drawXPolygon.md) · [BIS_fnc_drawArrow](../functions/BIS_fnc_drawArrow.md)

## Community notes

**Waffle SS.** — 2015-07-07

Be careful when using this command. Unlike map markers, the draw commands can decrease your framerate.

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