EFFECT/GetTracerShootPos

From Garry's Mod
Jump to: navigation, search
 EFFECT:GetTracerShootPos( )

Contents

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.

Arguments

Vector pos

Default position if we fail

Arguments

Weapon ent

The weapon to use.

Arguments

number attachment

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.

Returns

Vector

The "real" start position.
Personal tools
Navigation