Garry's Mod Wiki

WEAPON:ShootBullet

  WEAPON:ShootBullet( number damage, number num_bullets, number aimcone, string ammo_type = "self.Primary.Ammo", number force = 1, number tracer = 5 )

Description

A convenient function to shoot bullets.

Arguments

1 number damage
The damage of the bullet
2 number num_bullets
Amount of bullets to shoot
3 number aimcone
Spread of bullets
4 string ammo_type = "self.Primary.Ammo"
Ammo type of the bullets
5 number force = 1
Force of the bullets
6 number tracer = 5
Show a tracer on every x bullets