Garry's Mod Wiki
Description
Converts the specified screen position to a direction vector local to the player's view. A related function is Vector:ToScreen, which translates a 3D position to a screen coordinate.
util.AimVector is a more generic version of this, using a custom view instead of the player's current view.
Arguments
Returns
Example
This will do a trace from the mouse position to the world
Output: The worldpos the cursor is pointing at will be printed
Example
Replacement for Player:GetAimVector
Output: The player's current aimvector will be printed
This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.
Page content is automatically updated four times a day. Edits and history are not available.
Last Parsed: Loading...