Garry's Mod Wiki


  Vector EFFECT:GetTracerShootPos( Vector pos, Weapon ent, number attachment )


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.


1 Vector pos
Default position if we fail
2 Weapon ent
The weapon to use.
3 number attachment
Attachment ID of on the weapon "muzzle", to use as the start position.
Please note that it is expected that the same attachment ID is used on both, the world and the view model.


1 Vector
The "real" start position.