Garry's Mod Wiki



Tables used for bullets see Entity:FireBullets and GM:EntityFireBullets.


Attacker [Entity]

The entity that should be reported as attacker eg. a player

By default this would be set to the entity Entity:FireBullets is called on.

Default: self

Callback [function]

Function to be called after the bullet was fired but before the damage is applied (the callback is called even if no damage is applied). The arguments are:

Default: nil

Damage [number]

The damage dealt by the bullet

Default: 1

Force [number]

The force of the bullets

Default: 1

Distance [number]

Maximum distance the bullet can travel

Default: 56756

HullSize [number]

The hull size of the bullet

Default: 0

Num [number]

The amount of bullets to fire

Default: 1

Tracer [number]

Show tracer for every x bullets

Default: 1

AmmoType [string]

The ammunition name

Default: "<empty string>"

TracerName [string]

The tracer name. You can find a list of default effects here.

Default: "nil"

Dir [Vector]

The fire direction

Default: Vector( 0, 0, 0 )

Spread [Vector]

The spread, only x and y are needed

Default: Vector( 0, 0, 0 )

Src [Vector]

The position to fire the bullets from

Default: Vector( 0, 0, 0 )

IgnoreEntity [Entity]

The entity that the bullet will ignore when it will be shot.

Default: NULL

Page Links

Special Pages



Render Time: 43ms

DB GetPage 5
Generate Html 16
SaveChanges (1) 14
Render Body 0
Render Sidebar 5