# GM:ScaleNPCDamage

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

```lua
GM:ScaleNPCDamage( NPC npc, number hitgroup, CTakeDamageInfo dmginfo )
```

## Açıklama

Bir NPC hasar aldığında çağrılır.

> **NOT:** Bu hook, yalnızca NPC'nin belirli bir vuruş grubu (hit group) vurulduğunda çağrılır. Vuruş grubunun önemli olmadığı durumlarda, bunun yerine [GM:EntityTakeDamage](https://gmod.tr/wiki/GM:EntityTakeDamage) kullanmalısınız!

## Argümanlar

1. [NPC](https://gmod.tr/wiki/NPC) **npc**: Hasar alan NPC
2. [number](https://gmod.tr/wiki/number) **hitgroup**: NPC'nin hasar aldığı vuruş grubu (hitbox) enum değeri. Bakınız: [HITGROUP enum](https://gmod.tr/wiki/Enums/HITGROUP)
3. [CTakeDamageInfo](https://gmod.tr/wiki/CTakeDamageInfo) **dmginfo**: Hasar bilgisi

### Örnek

Bir NPC hasar aldığında hasarı iki katına çıkarın.

```lua
hook.Add( "ScaleNPCDamage", "ScaleNPCDamageExample", function( npc, hitgroup, dmginfo )
	dmginfo:ScaleDamage( 2 )
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:ScaleNPCDamage
