Garry's Mod Wiki

Revision Difference

Entity:FireBullets#515702

<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 &lt;page&gt;Bullet&lt;/page&gt;.</arg>⤶ <arg name="suppressHostEvents" type="boolean" default="false">Has the effect of encasing the FireBullets call in &lt;page&gt;Global.SuppressHostEvents&lt;/page&gt;, only works in multiplayer.</arg>⤶ </args>⤶ </function>⤶ ⤶