debugrenderer.draw_text

From Pragma
Jump to: navigation, search

Info

Name: draw_text

State:

SHARED

TRANSMITTED

Overloads

CLIENT

 draw_text(  text,  pos,  size,  col,  duration=0)

CLIENT

 draw_text(  text,  pos,  scale,  col,  duration=0)

SERVER

 draw_text(  text,  pos,  size,  col,  duration=0)

SERVER

 draw_text(  text,  pos,  scale,  col,  duration=0)

Description

Draws a text in the world. Only use for debugging purposes!
If the duration isn't set to 0, this function will return nil and the line will be removed after the duration has passed.
Otherwise the text 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.)

Examples

See Also