Skip to content

RenderWorldRect

Draw a projected world rectangle.

RenderWorldRect(center, halfWidth, halfHeight[, color[, thickness]])

Inputs: center is a world { x, y, z } value; halfWidth and halfHeight are numbers. Optional color and numeric thickness configure the outline.

Output: No Lua return value. Drawing may be skipped when the view or minimap is unavailable.

Errors and unavailable states: Required text or numeric arguments of the wrong type raise a Lua argument error. Missing or non-numeric vector fields read as 0. If the game view cannot be projected, nothing is drawn.

See Rendering overview for coordinate and color conventions.