Garry's Mod Wiki

Revision Difference

Entity:FireBullets#519098

<function name="FireBullets" parent="Entity" type="classfunc"> <description> Fires a bullet. When used in a hook such as <page>WEAPON:Think</page> or <page>WEAPON:PrimaryAttack</page>, it will use <page>Player:LagCompensation</page> internally. <note>Lag compensation will not work if this function is called in a timer, regardless if the timer was made in a hook.</note> </description> <realm>Shared</realm> <args> <arg name="bulletInfo" type="table">The bullet data to be used. See the <page>Bullet</page>.</arg> <arg name="bulletInfo" type="table">The bullet data to be used. See the <page>Structures/Bullet</page>.</arg> <arg name="suppressHostEvents" type="boolean" default="false">Has the effect of encasing the FireBullets call in <page>Global.SuppressHostEvents</page>, only works in multiplayer.</arg> </args> </function>