Skip to content

RenderWorldLine

Draw a projected world line.

RenderWorldLine(from, to[, color[, thickness]])

Inputs: from and to are world { x, y, z } values; optional color and numeric thickness configure the line.

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.