# hltv\_chase

- **Ortam:** İstemci, Menü
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/gameevent/hltv_chase
- **Çeviri tarihi:** 2025-09-08

## Açıklama

Görünüm değiştiğinde çağrılır

## Üyeler

- [number](https://gmod.tr/wiki/number) **distance**

  Hedefe olan uzaklık.

- [number](https://gmod.tr/wiki/number) **inertia**

  Eylemsizlik.

- [number](https://gmod.tr/wiki/number) **ineye**

  `1` ise [OBS_MODE_IN_EYE](https://gmod.tr/wiki/Enums/OBS_MODE) kullanılmalıdır. Aksi takdirde [OBS_MODE_CHASE](https://gmod.tr/wiki/Enums/OBS_MODE) kullanılır

- [number](https://gmod.tr/wiki/number) **phi**

  Phi değeri.

- [number](https://gmod.tr/wiki/number) **target1**

  Birincil hedefin [EntIndex](https://gmod.tr/wiki/Entity.EntIndex)'i.

- [number](https://gmod.tr/wiki/number) **target2**

  İkincil hedefin [EntIndex](https://gmod.tr/wiki/Entity.EntIndex)'i.

- [number](https://gmod.tr/wiki/number) **theta**

  Theta değeri.

## Örnekler

### Örnek

Bu, hangi değerlere erişilebileceğini kolayca anlaşılır kılmak amacıyla tüm argümanları / tablo değişkenlerini içeren temel bir şablondur.

```lua
gameevent.Listen( "hltv_chase" )
hook.Add( "hltv_chase", "hltv_chase_example", function( data )
	local distance = data.distance	-- Hedefimize olan uzaklık
	local inertia = data.inertia	-- Eylemsizlik
	local ineye = data.ineye		-- OBS_MODE_IN_EYE kullanılacaksa
	local phi = data.phi			-- Phi değeri
	local target1 = data.target1	-- Birincil Hedefimizin Entity:EntIndex() değeri
	local target2 = data.target2	-- İkincil Hedefimizin Entity:EntIndex() değeri
	local theta = data.theta		-- Theta değeri

	-- Görünüm değiştiğinde çağrılır

end )
```

- [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/gameevent/hltv_chase
