Arma 3 Scripting

drawLine3D

  • Local effect
  • Arma 3 v0.50

Command · Markdown · JSON · original wiki page

Description

Draws a line of a given colour between two 3D positions in the current frame. To be used mostly in a "Draw3D" mission event handler.

Syntax

drawLine3D [start, end, color, width]

Parameters:

Returns: Nothing

Examples

Example 1

onEachFrame {
    drawLine3D [getPos player, getPos cursorTarget, [1,1,1,1]];
};

See also

drawIcon3D · ASLToAGL

Community notes

Waffle SS.

Visible through fog and past draw distance.

fusselwurm

Caveat: lines invisible through MH-9 helicopter windows, see https://feedback.bistudio.com/T66225