Arma 3 Scripting

Command in GUI Control - Map

drawXPolygon

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

Description

Draws an N sided polygon on the map.

Syntax

map drawXPolygon [n, centre, a, b, angle, color, fill, alignWithMap]

Parameters:

Returns: Nothing

Examples

Example 1

findDisplay 12 displayCtrl 51 ctrlAddEventHandler ["Draw", 
{
    _this select 0 drawXPolygon [
        5, player, 50, 10, 0, [1, 0, 0, 1], ""
    ];
    _this select 0 drawXPolygon [
        3, player, 10, 50, 0, [1, 1, 1, 1], "#(rgb,8,8,3)color(1,0.6,0,1)"
    ];
    _this select 0 drawXPolygon [
        12, player, 10, 10, 90, [0, 0, 1, 1], ""
    ];
}];

See also

drawArrow · drawIcon · drawLine · drawRectangle · drawPolygon · drawTriangle · drawEllipse