Having a small problem with DModelPanels regarding their animations.
I'm trying to set an animation for the model that is displayed but when I use the code shown below it just uses the default 'standing' animation, rather than the one I've set.
Any advice? Cheers
[CODE]
local icon = vgui.Create("DModelPanel", DermaPanel)
icon:SetPos(0, 0)
icon:SetSize(100, 100)
icon:SetModel( "models/player/alyx.mdl" )
icon.Entity:SetAnimation(ACT_GMOD_TAUNT_DANCE)
[/CODE]
Try SetSequence instead of SetAnimation.
Sorry, you need to Log In to post a reply to this thread.