debugoverlay.Box

From GMod Wiki

Revision as of 07:20, 13 December 2009 by DarKSunrise (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax debugoverlay.Box( Vector origin, Vector mins, Vector maxs, Float duration (Seconds) (Defaults to 1), Color color (Defaults to white), Boolean skipdepth (Defaults to false) )
Where is this used?
Description:
Creates a simple box in the 3D world space.
Returns: nil
Part of Library: debugoverlay
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Debugoverlay.Box]Debugoverlay.Box [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionWill draw a blue box 50 units long, high and wide centered around the origin for 10 seconds.
Used onNewerShared.png
Code
debugoverlay.Box(Vector(0,0,0), Vector(-25, -25, -25), Vector(25, 25, 25), 10, Color(0,0,255))
Output(See description)


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox