# NPC:SetTarget

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

```lua
NPC:SetTarget( Entity entity )
```

## Açıklama

NPC'nin hedefini ayarlar. Bu, bazı motor programlarında (engine schedules) kullanılır.

## Argümanlar

1. [Entity](https://gmod.tr/wiki/Entity) **entity**: NPC'nin hedefi.

### Örnek

NPC'nin hedefini ilk oyuncu olarak ayarlar.

```lua
npc:SetTarget( Entity( 1 ) )
```

- [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/NPC:SetTarget
