Skip to content

RenderWorldRectFilled

Draw a filled world rectangle.

RenderWorldRectFilled(center, halfWidth, halfHeight[, color])

Inputs: center is a world { x, y, z } value; halfWidth and halfHeight are numbers; color is optional.

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.