Garry's Mod Wiki

Revision Difference

debugoverlay.SweptBox#518106

<function name="SweptBox" parent="debugoverlay" type="libraryfunc"> <description> Displays "swept" box, two boxes connected with lines by their verices. <note>This function will silently fail if the **developer** <page>ConVar</page> is set to 0.</note> </description> <realm>Shared</realm> <args> <arg name="vStart" type="Vector">The start position of the box.</arg> <arg name="vEnd" type="Vector">The end position of the box.</arg> <arg name="vMins" type="Vector">The &quot;minimum&quot; edge of the box.</arg> <arg name="vMaxs" type="Vector">The &quot;maximum&quot; edge of the box.</arg> <arg name="vMins" type="Vector">The "minimum" edge of the box.</arg> <arg name="vMaxs" type="Vector">The "maximum" edge of the box.</arg> <arg name="ang" type="Angle"></arg> <arg name="lifetime" type="number" default="1">Number of seconds to appear</arg> <arg name="color" type="table" default="Color( 255, 255, 255 )">The color of the box. Uses the &lt;page&gt;Color&lt;/page&gt;</arg>⤶ <arg name="color" type="table" default="Color( 255, 255, 255 )">The color of the box. Uses the <page>Color</page></arg>⤶ </args> </function>