# CTakeDamageInfo:SetAmmoType

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

```lua
CTakeDamageInfo:SetAmmoType( number ammoType )
```

## Açıklama

Hasarı veren silahın kullandığı mühimmat türünü değiştirir.

## Argümanlar

1. [number](https://gmod.tr/wiki/number) **ammoType**: Mühimmat türü ID'si

### Örnek

Yeni bir DamageInfo nesnesi oluşturur ve hasara neden olan mühimmatı AR2 mühimmatı olarak ayarlar.

```lua
local dmginfo = DamageInfo()

dmginfo:SetAmmoType( game.GetAmmoID( 'AR2' ) )
```

- [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/CTakeDamageInfo:SetAmmoType
