Garry's Mod Wiki

Revision Difference

EFFECT:GetTracerShootPos#518516

<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>⤶ <arg name="attachment" type="number">Attachment ID of on the weapon "muzzle", to use as the start position.⤶ <note>Please note that it is expected that the same attachment ID is used on both, the world and the view model.</note></arg>⤶ </args> <rets> <ret name="" type="Vector">The "real" start position.</ret> </rets> </function>