render.DrawBeam
From GMod Wiki
Function | |
Syntax |
render.DrawBeam( Vector StartPos, Vector EndPos, Number Width, Number TextureStart, Number TextureEnd, Color Colour ) Where is this used? |
Description: | |
Draws a beam from StartPos to EndPos. | |
Returns: | nil |
Part of Library: | render |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Render.DrawBeam]Render.DrawBeam [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- This function can only be used in draw functions such as the ENT:Draw hook for scripted entities (see above example), cam functions, or effects.
- TextureStart and TextureEnd are used to scale the texture called by render.SetMaterial