Garry's Mod Wiki

Entity:FireBullets

Entity:FireBullets( table bulletInfo, boolean suppressHostEvents = false )

Description

Fires a bullet.

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

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

Arguments

1 table bulletInfo
The bullet data to be used. See the Structures/Bullet.
2 boolean suppressHostEvents = false
Has the effect of encasing the FireBullets call in SuppressHostEvents, only works in multiplayer.

Page Links


Special Pages


Wikis

?

Render Time: 32ms

Session 0
DB GetPage 2
Generate Html 7
SaveChanges 12
Render Body 0
Render Sidebar 8