Arma 3 Scripting

drawArrow

  • Arma 3 v0.50
  • First in Armed Assault v1.00

Command · Markdown · JSON · 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.