Garry's Mod Wiki

DModelPanel:RunAnimation

DModelPanel:RunAnimation()

Description

This function is used in the DModelPanel:LayoutEntity. It will set the active model to the last set animation using Entity:SetSequence. By default, it is the walking animation.

Example

Sets the model to alyx and puts her in a walking animation

local ModelPanel = vgui.Create( "DModelPanel", Panel ) ModelPanel:SetModel( "models/player/alyx.mdl" ) function ModelPanel:LayoutEntity( ent ) ModelPanel:RunAnimation() end

Page Links


Special Pages


Wikis

?

Render Time: 85ms

DB GetPage 51
Generate Html 2
SaveChanges (1) 15
Render Body 0
Render Sidebar 14