Revision Difference
GM:PostEntityFireBullets#562913
<function name="PostEntityFireBullets" parent="GM" type="hook">
<description>
Called every time a bullet pellet is fired from an entity.
<warning>This hook is called directly from <page>Entity:FireBullets</page>. Due to this, you cannot call <page>Entity:FireBullets</page> inside this hook or an infinite loop will occur crashing the game.</warning>
</description>
<added>2023.11.16</added>
<realm>Shared</realm>
<args>
<arg name="entity" type="Entity">The entity that fired the bullet</arg>⤶
<arg name="data" type="table">The bullet data. Contains the following keys:⤶
* <page>table</page> **Trace** - The bullet pellet trace result. See <page>Structures/TraceResult</page>⤶
⤶
From <page>Structures/Bullet</page>:⤶
* `AmmoType`, `Tracer`, `Damage`, `Force`, `Attacker`, `TracerName`.
</arg>⤶
<arg name="entity" type="Entity">⤶
The entity that fired the bullet⤶
</arg>⤶
<arg name="data" type="table">⤶
A table of data about the bullet that was fired.
⤶
See <page>Structures/FiredBullet</page>.⤶
</arg>⤶
</args>
<rets>
<ret name="" type="boolean">Return `false` to suppress the bullet.</ret>
</rets>
</function>