Discord
Steam
/
Garry's Mod
/
Developers
/
SWEP Bullets c..
Login/Join
Event Log
SWEP Bullets come out of center of body
4 replies, posted
Search
In This Thread
Hey guys, when I shoot a SWEP I've made, the bullet's come out of the person's body, not out of the tip of the gun. I'm using this: [lua]bullet.Src=self.Owner:GetShootPos()[/lua] Is this correct?
Does it look like this? [lua]local bullet = {} bullet.Num = 1 bullet.Src = self.Owner:GetShootPos() bullet.Dir = self.Owner:GetAimVector() bullet.Spread = Vector(0, 0, 0) bullet.Tracer = 2 bullet.Force = 1 bullet.Damage = 25 bullet.AmmoType = self.Primary.Ammo self.Owner:FireBullets( bullet ) [/lua]
Yep. [lua]local bullet={} bullet.Num=1 bullet.Src=self.Owner:GetShootPos() bullet.Dir=self.Owner:GetAimVector() bullet.Spread=Vector(self.Primary.Cone,self.Primary.Cone,0) bullet.Tracer=1 bullet.TracerName = "AR2tracer" bullet.Force=5 bullet.Damage=4 self.Owner:FireBullets(bullet)[/lua]
That's because your world model doesn't have the correct attachments.
Okay. I'll try to find another model!
Sorry, you need to
Log In
to post a reply to this thread.