Player.GetViewOffset
From GMod Wiki
Function | |
Syntax | Player:GetViewOffset( ) |
Description: | |
Returns the vector of the view position | |
Returns: | Vector |
In Object: | Player |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Player.GetViewOffset]Player.GetViewOffset [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | This piece of code prints the LocalPlayers' view offset |
---|---|
Used on | |
Code | print(LocalPlayer():GetViewOffset()) |
Output | By default 0.00 0.00 64.00 |