render.DrawBox
render.DrawBox( Vector position, Angle angles, Vector mins, Vector maxs, Color color = Color( 255, 255, 255 ) )
Açıklama
3 boyutlu alanda bir kutu çiziyor.
Bu bir gösterimdir function that 3 boyutlu görüntüleme bağlamı gerektirir.
Bu sadece çalışacak anlamına gelir. 3D Rendering Hooks.
Argümanlar
Örnek
Aradığınız konuma beyaz bir kutu çeker.
local x = Vector( 5, 5, 5 )
hook.Add( "PostDrawTranslucentRenderables", "Boxxie", function()
local pos = LocalPlayer():GetEyeTrace().HitPos - Render kutusu konumunda
render.SetColorMaterial() -- kolay renklendirme için beyaz malzeme.
cam.IgnoreZ( true ) -- bir sonraki çekim çağrısını yapar derinliği görmezden gelir ve yukarıdan çeker.
render.DrawBox( pos, angle_zero, x, -x, color_white ) - Kutuyu çeker.
cam.IgnoreZ( false ) -- Önceki aramayı kapatır.
end )
Çıkış: 

Tüm sunucular · GmodTR Launcher · Rehber · GMod Wiki · GmodTR nedir? · Sunucu ekle · Discord