SWEP.GetTracerOrigin

From GMod Wiki

Revision as of 00:46, 24 October 2009 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Event Hook
Hook NameGetTracerOrigin
SyntaxSWEP:GetTracerOrigin( )
DescriptionAllows you to override where the tracer comes from (in first person view).
ReturnsVector
Lua StateNewerClient.png
BBCode[b][url=wiki.garrysmod.com/?title=SWEP.GetTracerOrigin]SWEP.GetTracerOrigin [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]

Examples

DescriptionMakes bullets shoot from your eyes.
Used onNewerClient.png
Code
function SWEP:GetTracerOrigin()
     return self.Owner:EyePos()
end
OutputN/A

Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox