Entity/FireBullets

From Garry's Mod
Jump to: navigation, search
 Entity:FireBullets( )

Description

Fires a bullet.

When used in a WEAPON hook such as WEAPON:Think or WEAPON:PrimaryAttack, it will use Player:LagCompensation internally.

NOTE

Lag compensation will not work if this function is called in a timer, regardless if the timer was made in a WEAPON hook.

Arguments

table bulletInfo

The bullet data to be used. See the Bullet structure.

Arguments

boolean suppressHostEvents=false

Has the effect of encasing the FireBullets call in SuppressHostEvents, only works in multiplayer.
Personal tools
Navigation