debugrenderer.draw_cone

From Pragma
Jump to: navigation, search

Info

Name: draw_cone

State:

SHARED

TRANSMITTED

Overloads

CLIENT

 draw_cone(  origin,  direction,  distance,  angle,  color,  colorOutline,  duration=0,  segmentCount=12)

CLIENT

 draw_cone(  origin,  direction,  distance,  angle,  color,  duration=0,  segmentCount=12)

SERVER

 draw_cone(  origin,  direction,  distance,  angle,  color,  colorOutline,  duration=0,  segmentCount=12)

SERVER

 draw_cone(  origin,  direction,  distance,  angle,  color,  duration=0,  segmentCount=12)

Description

Draws a cone in the world. Only use for debugging purposes!
If the duration isn't set to 0, this function will return nil and the cone will be removed after the duration has passed.
Otherwise the cone will automatically removed when all references to it are destroyed, or DebugRendererObject:Remove is called.
If this function is run serverside, it will always return nil. (Using a duration of 0 will be pointless in this case.)
The segment count defines the smoothness of the cone.

Examples

See Also