PhysObj:ApplyForceOffset
Açıklama
Belirtilen itme kuvvetini, fizik nesnesine belirtilen pozisyonda uygular.
Argümanlar
Örnek
Oyuncunun baktığı şeyi kendisine doğru çeker.
local tr = Entity(1):GetEyeTrace()
if IsValid(tr.Entity) then
local phys = tr.Entity:GetPhysicsObjectNum(tr.PhysicsBone)
local pushvec = tr.Normal * -100000
local pushpos = tr.HitPos
phys:ApplyForceOffset(pushvec, pushpos)
end
Tüm sunucular · GmodTR Launcher · Rehber · GMod Wiki · GmodTR nedir? · Sunucu ekle · Discord