Garry's Mod Wiki

GM:EntityFireBullets

Description

Called every time a bullet is fired from an entity.

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 ent
The entity that fired the bullet
2 table data
The bullet data. See Structures/Bullet

Returns

1 boolean
Return true to apply all changes done to the bullet table.

Return false to suppress the bullet.

Page Links


Special Pages


Wikis

?

Render Time: 44ms

Session 0
DB GetPage 3
Generate Html 13
SaveChanges 15
Render Body 0
Render Sidebar 12