• DModelPanel, make model closer to camera.
    2 replies, posted
So I want the model to be closer to the camera than far away and spinning. Here is what I got: https://files.facepunch.com/forum/upload/114140/32676841-163b-402f-ad69-0599a6ccbbe0/Screenshot_35.png The code to it: local p = vgui.Create( "DPanel", f ) p:SetPos( 0, 0 + 25 ) p:SetSize( 300, h - 25) p.Paint = function( self, w, h ) draw.OutlinedBox( 0, 0, w, h, 5, Color( 255, 255, 255, 255 ) ) end local m = vgui.Create( "DModelPanel", p ) m:SetSize( 300, h - 25 ) m:SetModel( ply:GetModel() ) So what I want to do is to make the playermodel bigger, or make it so the camera is more in front of him. And also not spinning, if anyone knows how to do that.
DModelPanel/SetFOV should help
I think http://wiki.garrysmod.com/page/DModelPanel/SetCamPos is better for this
Sorry, you need to Log In to post a reply to this thread.