• DrawBeam function
    1 replies, posted
Hey guys. I am trying to draw a beam for a second, and first of all trying to draw the beam it self, but it doesn't work. This is my code: [CODE] local startingpoint = LocalPlayer():GetBonePosition(LocalPlayer():LookupBone("ValveBiped.Bip01_Head1")) local LASER = Material('cable/redlaser') render.SetMaterial( LASER ) render.DrawBeam(startingpoint, LocalPlayer():GetEyeTrace().HitPos, 2, 0, 12.5, Color(255, 0, 0, 255))[/CODE] Note: I am trying to shoot the beam for a swep.
Make sure you're calling it inside of a render function. Here: [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/render_lasers_rendering_cubes.lua.html[/url]
Sorry, you need to Log In to post a reply to this thread.