DModelPanel/GetFOV

From Garry's Mod
Jump to: navigation, search
 DModelPanel:GetFOV( )

Contents

DescriptionPanelFunc

Returns the FOV (field of view) the camera is using.

Returns

number

The FOV of the camera.

Examples

Example

Prints out the default camera FOV.

local mdl = vgui.Create("DModelPanel")
mdl:SetPos(20, 20)
mdl:SetSize(200, 200)
mdl:SetModel("models/props_junk/watermelon01.mdl")

print(mdl:GetFOV())

Output:

70
Personal tools
Navigation