Garry's Mod Wiki

DModelPanel:GetFOV

Description

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

Returns

1 number
The FOV of the camera.

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

Page Links


Special Pages


Wikis

?

Render Time: 31ms

DB GetPage 2
Generate Html 2
SaveChanges (1) 12
Render Body 0
Render Sidebar 12