# DModelPanel:SetFOV

- **Ortam:** İstemci
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/DModelPanel:SetFOV
- **Çeviri tarihi:** 2025-09-08

```lua
DModelPanel:SetFOV( number fov )
```

## Açıklama

Panel kamerasının FOV (görüş alanı) değerini ayarlar.

## Argümanlar

1. [number](https://gmod.tr/wiki/number) **fov**: Görüş alanı değeri.

### Örnek

Şimdiye kadar gördüğünüz en iyi FOV demosu.

```lua
BGPanel = vgui.Create("DPanel")
BGPanel:SetPos(20, 20)
BGPanel:SetSize(200, 200)

local mdl = vgui.Create("DModelPanel", BGPanel)
mdl:Dock(FILL)
mdl:SetModel("models/player/barney.mdl")

local fov = 10	-- başlangıç değeri
local offset = 0.1	-- artırılacak miktar

function mdl:LayoutEntity(ent)

	mdl:SetFOV(fov)	-- FOV'u güncelle

	fov = fov + offset	-- artır

	if(fov >= 120 or fov <= 10) then
		offset = offset*-1	-- artış miktarını tersine çevir
	end

	ent:SetSequence(ent:LookupSequence("taunt_muscle"))	-- SIK
	if(ent:GetCycle() >= 0.95) then ent:SetCycle(0.05) end	-- O
	mdl:RunAnimation()	-- KASLARI

end
```

**Çıktı:** ![](https://gmod.tr/api/uploads/wiki/33120d5761fac179d99c.jpg)

- [GMod Wiki ana sayfası](https://gmod.tr/wiki)

---

[Tüm sunucular](https://gmod.tr/) · [GmodTR Launcher](https://gmod.tr/launcher) · [Rehber](https://gmod.tr/rehber) · [GMod Wiki](https://gmod.tr/wiki) · [GmodTR nedir?](https://gmod.tr/hakkinda) · [Sunucu ekle](https://gmod.tr/sunucu-ekle) · [Discord](https://discord.gg/gmodtr)

Kaynak: https://gmod.tr/wiki/DModelPanel:SetFOV
