Garry's Mod Wiki

render.DrawBeam

render.DrawBeam( Vector startPos, Vector endPos, number width, number textureStart, number textureEnd, table color = Color( 255, 255, 255 ) )

Description

Draws textured beam.

This is a rendering function that requires a 3d rendering context.

This means that it will only work in 3d Rendering Hooks.

Arguments

1 Vector startPos
Beam start position.
2 Vector endPos
Beam end position.
3 number width
The width of the beam.
4 number textureStart
The start coordinate of the texture used.
5 number textureEnd
The end coordinate of the texture used.
6 table color = Color( 255, 255, 255 )
The color to be used. Uses the Color.

Page Links


Special Pages


Wikis

?

Render Time: 76ms

DB GetPage 40
Generate Html 14
SaveChanges (1) 9
Render Body 0
Render Sidebar 10