constraint.Keepupright
Açıklama
Bir dik tutma kısıtlaması oluşturur.
Argümanlar
Dönen Değerler
Örnek
Oyuncunun baktığı herhangi bir prop'u dik tutacak bir konsol komutu ekler.
concommand.Add( "keep_upright",function( ply, cmd, args )
local tr = ply:GetEyeTrace()
local ent = tr.Entity
if ( !IsValid( ent ) ) then return end
constraint.Keepupright( ent, ent:GetAngles(), tr.PhysicsBone, 999999 )
end )
Tüm sunucular · GmodTR Launcher · Rehber · GMod Wiki · GmodTR nedir? · Sunucu ekle · Discord