Arma 3 Scripting

Command in GUI Control - Map

drawArrow

Also available as Markdown and JSON, or read the original wiki page.

Description

Draws a single line arrow on the map. As this command needs to be called every frame, it is preferable using the onDraw UI Event Handler. To draw a color filled arrow of custom shape see BIS_fnc_drawArrow.

Syntax

map drawArrow [from, to, color]

Parameters:

Returns: Nothing

Examples

Example 1

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

See also

drawEllipse · drawIcon · drawLine · drawRectangle · drawPolygon · drawTriangle · drawXPolygon · BIS_fnc_drawArrow

Community notes

Waffle SS.

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