• Help with DModelPanel
    2 replies, posted
So what i want to do is make my model in DModelPanel to walk. Right now its just spinning around ive tried DModelPanel:SetAnimated(true) but then i get this error: [PHP]lua\autorun\client\createcharactermenu.lua:144: attempt to call method 'SetAnimated' (a nil value)[/PHP] How should i make the model walk? [LUA] DModelPanel1 = vgui.Create( 'DModelPanel',DPanel1) DModelPanel1:SetParent(DPanel1) DModelPanel1:SetSize(200, 200) DModelPanel1:SetPos(40, 180) DModelPanel1:SetModel(LocalPlayer():GetModel()) DModelPanel1:SetCamPos( Vector( 75, 0, 35 ) ) DModelPanel1:SetLookAt( Vector( -100, 0, 35) )[/LUA] Best Regards
try [lua]function DModelPanel1:LayoutEntity( ) self:RunAnimation() end[/lua]
Thanks that fixed it
Sorry, you need to Log In to post a reply to this thread.