Be careful when using this command. Unlike map markers, the draw commands can decrease your framerate.
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:
map: Controlfrom: Object or Position2D or Position3D - arrow start positionto: Object or Position2D or Position3D - arrow end positioncolor: Array - arrow color in format [r,g,b,a]
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