Line( <start>, <end>, <color>, <depthTest>, <duration> )

Module: Debug


Draw a debug line on screen


Line( self.origin, self.origin + forwardFar, (0.9, 0.7, 0.6), false );

Required Args:

  • 1 : <start> start vector position of the line
  • 2 : <end> end vector position of the line

Optional Args

  • 1 : <color> RGB color of the line in a vector, defaults to white
  • 2 : <depthTest> whether to only draw the line when it is in front of objects, defaults to false. Depth test is only supported on pc.
  • 3 : <duration> How many server frames the line should persist through.