From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Draws a depth-tested line from one point to another.
x1, y1, z1 : Coordinates for the first point
x2, y2, z2 : Coordinates for the second point
r, g, b, alpha : Color with RGBA-Values
I recommend using a predefined function to call this.
Public Sub DrawLine(from As Vector3, [to] As Vector3, col As Color)
[Function].Call(Hash.DRAW_LINE, from.X, from.Y, from.Z, [to].X, [to].Y, [to].Z, col.R, col.G, col.B, col.A)
End Sub

public void DrawLine(Vector3 from, Vector3 to, Color col)
Function.Call(Hash.DRAW_LINE, from.X, from.Y, from.Z, to.X, to.Y, to.Z, col.R, col.G, col.B, col.A);

Syntax, y1, z1, x2, y2, z2, r, g, b, alpha);

Required Arguments

  • x1: float
  • y1: float
  • z1: float
  • x2: float
  • y2: float
  • z2: float
  • r: int
  • g: int
  • b: int
  • alpha: int

Return value

  • Undefined


// todo

See also