Player.GetViewOffset

From GMod Wiki

Revision as of 19:14, 2 November 2009 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Player:GetViewOffset( )
Description:
Returns the vector of the view position
Returns: Vector
In Object: Player
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.GetViewOffset]Player.GetViewOffset [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionThis piece of code prints the LocalPlayers' view offset
Used onNewerClient.png
Code
 print(LocalPlayer():GetViewOffset())
 
OutputBy default 0.00 0.00 64.00


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox