SWEP.GetTracerOrigin
From GMod Wiki
Event Hook | |
Hook Name | GetTracerOrigin |
Syntax | SWEP:GetTracerOrigin( ) |
Description | Allows you to override where the tracer comes from (in first person view). |
Returns | Vector |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=SWEP.GetTracerOrigin]SWEP.GetTracerOrigin [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Makes bullets shoot from your eyes. |
---|---|
Used on | |
Code | function SWEP:GetTracerOrigin() return self.Owner:EyePos() end |
Output | N/A |
Additional Notes
- Returning anything but a vector indicates that you want the default action, which is defined here : (Source Code)