# ENTITY:OnChangeActiveWeapon

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

```lua
ENTITY:OnChangeActiveWeapon( Weapon old, Weapon new )
```

## Açıklama

SNPC'nin mevcut aktif silahı değiştiğinde çağrılır.

> **NOT:** Bu hook yalnızca `ai` türündeki varlıklar üzerinde çalışır.

## Argümanlar

1. [Weapon](https://gmod.tr/wiki/Weapon) **old**: Önceki aktif silah.
2. [Weapon](https://gmod.tr/wiki/Weapon) **new**: Yeni aktif silah.

- [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/ENTITY:OnChangeActiveWeapon
