Description
Draw a line on the map. Can decrease framerate!
Syntax
map drawLine [from, to, color, width]
Parameters:
map: Controlfrom: Object or Position2D or Position3Dto: Object or Position2D or Position3Dcolor: Color (RGBA)width: Number - (Optional, default 3) (since arma3 2.18)
Returns: Nothing
Examples
Example 1
(findDisplay 12 displayCtrl 51) ctrlAddEventHandler ["Draw",
"(_this select 0) drawLine [
player,
[0,0,0],
[0,0,1,1]
];"
];
Arma 3 v2.02 toString version:
(findDisplay 12 displayCtrl 51) ctrlAddEventHandler ["Draw", toString {
(_this select 0) drawLine [
player,
[0,0,0],
[0,0,1,1] // blue
];
}];
See also
drawArrow · drawEllipse · drawIcon · drawRectangle · drawPolygon · drawTriangle · drawXPolygon