# GM:PlayerFootstep

- **Ortam:** İstemci, Sunucu
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/GM:PlayerFootstep
- **Çeviri tarihi:** 2025-09-08

```lua
boolean GM:PlayerFootstep( Player ply, Vector pos, number foot, string sound, number volume, CRecipientFilter filter )
```

> **NOT:** Bu hook [tahmin edilir](https://gmod.tr/wiki/Prediction) (predicted). Bu, tek oyunculu modda, İstemci (Client) alanında **çağrılmayacağı** anlamına gelir.

## Açıklama

Bir oyuncu her adım attığında çağrılır. Varsayılan sesi susturmak için true döndürün.

Ayak sesi frekansı hakkında ilgili bir hook için [GM:PlayerStepSoundTime](https://gmod.tr/wiki/GM:PlayerStepSoundTime) sayfasına bakın.

> **NOT:** Bu hook tüm istemcilerde çağrılır.

## Argümanlar

1. [Player](https://gmod.tr/wiki/Player) **ply**: Adım atan oyuncu
2. [Vector](https://gmod.tr/wiki/Vector) **pos**: Adımın pozisyonu
3. [number](https://gmod.tr/wiki/number) **foot**: Adım atılan ayak. 0 sol, 1 sağ içindir
4. [string](https://gmod.tr/wiki/string) **sound**: Çalınacak olan ses
5. [number](https://gmod.tr/wiki/number) **volume**: Ayak sesinin yüksekliği
6. [CRecipientFilter](https://gmod.tr/wiki/CRecipientFilter) **filter**: Ayak sesini duyabilecek oyuncuların Alıcı filtresi (Recipient filter)

## Döndürülenler

1. [boolean](https://gmod.tr/wiki/boolean): Varsayılan adım sesini engeller

### Örnek

Varsayılan oyuncu ayak seslerini devre dışı bırakır ve özel olanları çalar.

```lua
hook.Add( "PlayerFootstep", "CustomFootstep", function( ply, pos, foot, sound, volume, rf )
	ply:EmitSound( "NPC_Hunter.Footstep" ) -- Hunter'ın kullandığı ayak seslerini çalar
	return true -- Varsayılan ayak seslerine veya diğer eklenti ayak seslerine izin verme
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/GM:PlayerFootstep
