Garry's Mod Wiki

Revision Difference

render.DrawLine#512946

<function name="DrawLine" parent="render" type="libraryfunc">⤶ <description>⤶ Draws a line in 3D space.⤶ ⤶ <rendercontext hook="false" type="3D"/>⤶ </description>⤶ <realm>Client</realm>⤶ <args>⤶ <arg name="startPos" type="Vector">Line start position in world coordinates.</arg>⤶ <arg name="endPos" type="Vector">Line end position in world coordinates.</arg>⤶ <arg name="color" type="table" default="Color( 255, 255, 255 )">The color to be used. Uses the &lt;page&gt;Color&lt;/page&gt;.</arg>⤶ <arg name="writeZ" type="boolean" default="false">Whether or not to consider the Z buffer. If false, the line will be drawn over everything currently drawn, if true, the line will be drawn with depth considered, as if it were a regular object in 3D space.&#xA;&#xA;&lt;bug issue=&quot;1086&quot;&gt;Enabling this option will cause the line to ignore the color&#x27;s alpha.&lt;/bug&gt;</arg>⤶ </args>⤶ </function>⤶ ⤶