• DModelPanel animations?
    4 replies, posted
How would I set the animations of a model through a DModelPanel entity. The only commented function is self:RunAnimation() but if I'd like to make my model "shoot" or "idle", how would I do so?
DModelPanel.Entity is the entity in the view. Use it like it's an entity.
Here's what i use. Also stops that shitty spinning effect. [lua] function PlayerModelPanel:LayoutEntity( ent ) local Seq = PlayerModelPanel.Entity:LookupSequence( "idle_angry" ); ent:SetSequence(Seq) self:RunAnimation() ent:SetAngles( Angle( 0, 45, 0 ) ); end [/lua]
Ah thanks! That's exactly what I was looking for.
Sorry, you need to Log In to post a reply to this thread.