Hey there. I want to create a laser sight that will go on my weapon. There are a few questions I have before, though:
1. What entity/effect could I use to create the laser sight?
2. Would I set it's position on the weapon with SetPos()?
3. Should I do this clientside or serverside?
Thanks in advance.
[QUOTE=MegaTronJohn;48287896]Hey there. I want to create a laser sight that will go on my weapon. There are a few questions I have before, though:
1. What entity/effect could I use to create the laser sight?
2. Would I set it's position on the weapon with SetPos()?
3. Should I do this clientside or serverside?
Thanks in advance.[/QUOTE]
[B]What entity/effect could I use to create the laser sight?
[/B][url]http://wiki.garrysmod.com/page/render/DrawBeam[/url]
Use starting position of laser sight's attachment point because anything different will result in dodgy laser sight.
[url]http://wiki.garrysmod.com/page/Entity/GetAttachment[/url]
and ending position of LocalPlayer():GetEyeTrace().HitPos
[B]Would I set it's position on the weapon with SetPos()?
[/B] No. You must set it's position via render.DrawBeam
[B]Should I do this clientside or serverside?
[/B] Clientside
Sorry, you need to Log In to post a reply to this thread.