Revision Difference
Entity:FireBullets#549111
<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>
<note>Due to how FireBullets is set up internally, bullet tracers will always originate from attachment 1.</note>⤶
</description>
<realm>Shared</realm>
<args>
<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>