Player.GetFOV

From GMod Wiki

Jump to: navigation, search
Function
Syntax Player:GetFOV( )
Description:
Get the players field-of-view angle.
Returns: Number
In Object: Player
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.GetFOV]Player.GetFOV [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionThis piece of code prints the LocalPlayers' FOV
Used onNewerClient.png
Code
print(LocalPlayer():GetFOV())
OutputBy default 75


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox