Garry's Mod Wiki

Revision Difference

debugoverlay.BoxAngles#513266

<function name="BoxAngles" parent="debugoverlay" type="libraryfunc"> <description> Displays a solid colored rotated box at the specified position. <note>This function will silently fail if the **developer** <page>ConVar</page> is set to 0.</note> </description> <realm>Shared</realm> <args> <arg name="pos" type="Vector">World position</arg> <arg name="mins" type="Vector">The mins of the box (lowest corner)</arg> <arg name="maxs" type="Vector">The maxs of the box (highest corner)</arg> <arg name="ang" type="Angle">The angle to draw the box at</arg> <arg name="lifetime" type="number" default="1">Amount of seconds to show the box</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> </args> </function>