Garry's Mod Wiki

Garry's Mod Wiki

  debugoverlay.Line( Vector pos1, Vector pos2, number lifetime = 1, table color = Color( 255, 255, 255 ), boolean ignoreZ = false )

Description

Displays a coloured line at the specified position.

This function will silently fail if the developer ConVar is set to 0.
It is not networked to clients, except for the listen server host.
It will not work when the game is paused.

Arguments

1 Vector pos1
First position of the line
2 Vector pos2
Second position of the line
3 number lifetime = 1
Number of seconds to appear
4 table color = Color( 255, 255, 255 )
The color of the line. Uses the Color
5 boolean ignoreZ = false
If true, will draw on top of everything; ignoring the Z buffer

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...