Arma 3 Scripting

Command in GUI Control - Map

drawRectangle

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

Description

Draws a rectangle on the map.

Syntax

map drawRectangle [centre, halfWidth, halfHeight, angle, color, fill, alignWithMap]

Parameters:

Returns: Nothing

Examples

Example 1

_ctrl drawRectangle [
    getPos player,
    20,
    20,
    getDir player,
    [0,0,1,1],
    ""
];

Example 2

_ctrl drawRectangle [
    player,
    10,
    20,
    getDir player,
    [1,1,1,1],
    "#(rgb,8,8,3)color(1,0,0,1)"
];

See also

drawArrow · drawEllipse · drawIcon · drawLine · drawPolygon · drawTriangle · drawXPolygon

Community notes