GM/EntityFireBullets

From Garry's Mod
Jump to: navigation, search
 GM:EntityFireBullets( )

Contents

Description

Called every time a bullet is fired from an entity.

WARNING 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

Entity ent

The entity that fired the bullet

Arguments

table data

The bullet data. See Bullet structure

Returns

boolean

Return true to apply all changes done to the bullet table.
Return false to suppress the bullet.
Personal tools
Navigation