Garry's Mod Wiki

Revision Difference

EFFECT:GetTracerShootPos#515627

<function name="GetTracerShootPos" parent="EFFECT" type="hook">⤶ <ishook>yes</ishook>⤶ <description>⤶ Used to get the "real" start position of a trace, for weapon tracer effects.⤶ ⤶ "real" meaning in 3rd person, the 3rd person position will be used, in first person the first person position will be used.⤶ </description>⤶ <realm>Client</realm>⤶ <predicted>No</predicted>⤶ <args>⤶ <arg name="pos" type="Vector">Default position if we fail</arg>⤶ <arg name="ent" type="Weapon">The weapon to use.</arg>⤶ <arg name="attachment" type="number">Attachment ID of on the weapon &quot;muzzle&quot;, to use as the start position.&#xA;&#xA;&lt;note&gt;Please note that it is expected that the same attachment ID is used on both, the world and the view model.&lt;/note&gt;</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="Vector">The "real" start position.</ret>⤶ </rets>⤶ </function>⤶ ⤶