render.DrawBox

From Garry's Mod
Jump to: navigation, search
 render.DrawBox( )

Contents

Description

Draws a box in 3D space.

NOTE

This is a rendering function that requires a 3D rendering context.
This means that it will only work in hooks with a 3D rendering context.

Arguments

Vector position

Origin of the box.

Arguments

Angle angles

Orientation of the box.

Arguments

Vector mins

Start position of the box, relative to origin.

Arguments

Vector maxs

End position of the box, relative to origin.

Arguments

table color=Color( 255, 255, 255 )

The color of the box. Uses the Color structure.
Personal tools
Navigation