# WEAPON:GetTracerOrigin

- **Ortam:** İstemci
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/WEAPON:GetTracerOrigin
- **Çeviri tarihi:** 2025-09-08

```lua
Vector WEAPON:GetTracerOrigin()
```

## Açıklama

İzleyici mermi efektinin (tracer effect) nereden başlayacağını geçersiz kılmanıza olanak tanır. (Görsel mermiler)

## Döndürülen Değerler

1. [Vector](https://gmod.tr/wiki/Vector): İzleyici mermi efektinin başlayacağı yeni pozisyon

### Örnek

View model ve 3. şahıs görünüm desteği ile çift elle kullanılan bir silah için namlu parlaması pozisyonunu sırayla değiştiren bir örnek.

```lua
function SWEP:GetTracerOrigin()
	local Owner = self:GetOwner()
	local ent = Owner:ShouldDrawLocalPlayer() and self or Owner:GetViewModel()

	if ( self.Tracer ) then
		self.Tracer = false
		local att = ent:GetAttachment( ent:LookupAttachment( "muzzle" ) ) or ent:GetAttachment( ent:LookupAttachment( "1" ) )
		return att.Pos
	else
		self.Tracer = true
		local att = ent:GetAttachment( ent:LookupAttachment( "muzzle2" ) ) or ent:GetAttachment( ent:LookupAttachment( "2" ) )
		return att.Pos
	end
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/WEAPON:GetTracerOrigin
