{"name":"drawArrow","title":"drawArrow","type":"command","url":"https://community.bistudio.com/wiki/drawArrow","revid":377545,"updated":"2026-01-02T06:54:38Z","groups":["GUI Control - Map"],"status":"ok","games":{"arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma1 1.00","arma3_since":"0.50","description":"Draws a single line arrow on the map.\nAs this command needs to be called every frame, it is preferable using the onDraw UI Event Handler.\nTo draw a color filled arrow of custom shape see BIS_fnc_drawArrow.","syntaxes":[{"syntax":"map drawArrow [from, to, color]","params":[{"name":"map","type":"Control","type_expr":"Control"},{"name":"from","type":"Object or Position2D or Position3D","description":"arrow start position","type_expr":"Object | Position2D | Position3D"},{"name":"to","type":"Object or Position2D or Position3D","description":"arrow end position","type_expr":"Object | Position2D | Position3D"},{"name":"color","type":"Array","description":"arrow color in format [r,g,b,a]","type_expr":"Array"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"map"},"right":{"text":"[from, to, color]"}}],"examples":[{"text":"```sqf\nfindDisplay 12 displayCtrl 51 ctrlAddEventHandler [\"Draw\",\n{\n    _this select 0 drawArrow [\n        player,\n        player getRelPos [100, 0],\n        [1,0,0,1]\n    ];\n}];\n```","code":["findDisplay 12 displayCtrl 51 ctrlAddEventHandler [\"Draw\", \n{\n\t_this select 0 drawArrow [\n\t\tplayer,\n\t\tplayer getRelPos [100, 0],\n\t\t[1,0,0,1]\n\t];\n}];"]}],"see_also":["drawEllipse","drawIcon","drawLine","drawRectangle","drawPolygon","drawTriangle","drawXPolygon","BIS_fnc_drawArrow"],"notes":[{"user":"Waffle SS.","date":"2015-07-07T21:28:00Z","text":"Be careful when using this command. Unlike map markers, the draw commands can decrease your framerate."}]}