Garry's Mod Wiki

Revision Difference

debugoverlay.SweptBox#551158

<function name="SweptBox" parent="debugoverlay" type="libraryfunc"> <description> Displays "swept" box, two boxes connected with lines by their verices. Displays "swept" box, two boxes connected with lines by their vertices. <note>This function will silently fail if the `developer` <page>ConVar</page> is set to `0`. It is not networked to clients, except for the <page text="listen server host">Player:IsListenServerHost</page>.</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 "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 <page>Color</page></arg> </args> </function>