---
name: "BIS_fnc_drawArrow"
type: function
status: ok
groups: ["Map and Markers"]
arma3_since: "1.74"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_drawArrow
revid: 352164
updated: 2024-02-01T23:25:26Z
---

# BIS_fnc_drawArrow

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

## Description

Draws a static arrow (outline or color filled) on map. See [#Example 4](../functions/BIS_fnc_drawArrow.md#example-4) for arrow removal.

> [!NOTE]
> Note that the order in which arrows are added to map is reversed, the last added arrow will appear under the first added arrow

## Syntax

```sqf
[from, to, color, pars, fill, map] call BIS_fnc_drawArrow
```

**Parameters:**

- `from`: [Array](../topics/Array.md) - arrow start position in format [x,y] or [x,y,z]
- `to`: [Array](../topics/Array.md) - arrow end position in format [x,y] or [x,y,z]
- `color`: [Array](../topics/Array.md) format [Color (RGBA)](../topics/Color.md) - (Optional, default [1,1,1,1]) arrow line or fill color
- `pars`: [Array](../topics/Array.md) - (Optional) arrow geometry details in format [arrowThickness, arrowHeadLengthCoef, arrowHeadWidthCoef], where:
  - arrowThickness: [Number](../topics/Number.md) - (Optional, default 10) arrow thickness in meters
  - arrowHeadLengthCoef:  [Number](../topics/Number.md) - (Optional, default 1/3) arrow head length compared to the total length of the arrow
  - arrowHeadWidthCoef:  [Number](../topics/Number.md) - (Optional, default 2) arrow head width compared to the arrow thickness
  - Arma 3 v1.98 arrowBaseWidthCoef: [Number](../topics/Number.md) - (Optional, default 1) arrow base width compared to the arrow thickness
- `fill`: [Boolean](../topics/Boolean.md) - (Optional, default [true](../commands/true.md)) [true](../commands/true.md) to draw color filled arrow, [false](../commands/false.md) to draw outline
- `map`: [Control](../topics/Control.md) - (Optional, default [display](../commands/findDisplay.md) 12 [displayCtrl](../commands/displayCtrl.md) 51) map control

**Returns:** [Array](../topics/Array.md) - arrow reference for removal in format [idd, idc, ehId] or empty array [] on removal operation

## Examples

### Example 1

Draw a semi-transparent, blue arrow with default geometry:

```sqf
myArrow1 = [_pos1, _pos2, [0,0,1,0.5]] call BIS_fnc_drawArrow;
```

### Example 2

Draw a wide, green arrow outline:

```sqf
myArrow2 = [_pos1, _pos2, [0,1,0,1], [20], false] call BIS_fnc_drawArrow;
```

### Example 3

Draw a thin, red arrow with custom head geometry:

```sqf
myArrow3 = [_pos1, _pos2, [1,0,0,1], [1,1/5,5]] call BIS_fnc_drawArrow;
```

### Example 4

Remove the arrow created in [#Example 3](../functions/BIS_fnc_drawArrow.md#example-3):

```sqf
myArrow3 call BIS_fnc_drawArrow;
```

### Example 5

```sqf
myArrow1 = [[100,400,0], [200,500,0], [1,0,0,1], [20], true] call BIS_fnc_drawArrow;
myArrow2 = [[400,700,0], [300,600,0], [0,1,0,1], [20, 1/3, 2, 2], true] call BIS_fnc_drawArrow;
myArrow3 = [[600,700,0], [400,900,0], [0,0,1,1], [20, 1/3, 2, 0.5], true] call BIS_fnc_drawArrow;
myArrow4 = [[100,100,0], [200,200,0], [0,0,0,1], [20], false] call BIS_fnc_drawArrow;
myArrow5 = [[400,400,0], [300,300,0], [1,1,1,1], [20, 1/3, 2, 2], false] call BIS_fnc_drawArrow;
myArrow6 = [[600,400,0], [400,600,0], [0,1,1,1], [20, 1/3, 2, 0.5], false] call BIS_fnc_drawArrow;
```

## See also

[drawArrow](../commands/drawArrow.md)

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