Garry's Mod Wiki

Garry's Mod Wiki

  boolean GM:PostEntityFireBullets( Entity entity, table data )

Description

Called every time a bullet pellet (i.e. this hook is called multiple times for a shotgun shot) is fired from an entity. Notably this hook will have the final damage and aim direction for the bullet pellet.

See GM:EntityFireBullets if you wish to modify the bullets before they are fired.

This hook is called directly from Entity:FireBullets. Due to this, you cannot call Entity:FireBullets inside this hook or an infinite loop will occur crashing the game.

Arguments

1 Entity entity
The entity that fired the bullet
2 table data
A table of data about the bullet that was fired.

See FiredBullet structure.

Returns

1 boolean
Return false to suppress the bullet.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...