Player.GetCursorAimVector
From GMod Wiki
Revision as of 00:03, 5 November 2009 by Crazy Quebecer (Talk | contribs)
Function | |
Syntax | Player:GetCursorAimVector( ) |
Description: | |
Returns an aim vector based on the position of the player's cursor. | |
Returns: | Vector dir |
In Object: | Player |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Player.GetCursorAimVector]Player.GetCursorAimVector [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | This will get a normalized vector from player one's cursor. |
---|---|
Used on | |
Code | local vec = player.GetByID(1):GetCursorAimVector() |
Output | N/A |
Additional Notes
- If the cursor is not visible, this is the same as Player.GetAimVector.
- If it's run on the server and it's a multiplayer game, this will be the same as Player.GetAimVector.