Garry's Mod Wiki

Revision Difference

debugoverlay.Box#513390

<function name="Box" parent="debugoverlay" type="libraryfunc">⤶ <description>⤶ Displays a solid coloured 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="origin" type="Vector">Position origin</arg>⤶ <arg name="mins" type="Vector">Minimum bounds of the box</arg>⤶ <arg name="maxs" type="Vector">Maximum bounds of the box</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>⤶ </args>⤶ </function>⤶ ⤶