Vector:DotProduct
Örnek
Oyuncunun belirli bir yere baktığından emin olmayı sağlayan bir fonksiyon.
function IsLookingAt( ply, targetVec )
return ply:GetAimVector():DotProduct( ( targetVec - ply:GetPos() + Vector(70) ):GetNormalized() ) < 0.95
end
Çıktı: Eğer oyuncu (ply) hedefe bakıyorsa (veya yakınına) true döndürür.
Tüm sunucular · GmodTR Launcher · Rehber · GMod Wiki · GmodTR nedir? · Sunucu ekle · Discord