DModelPanel.RunAnimation

From GMod Wiki

Jump to: navigation, search
Function
Syntax DModelPanel.RunAnimation( )
Description:
Makes the specified model walk on the panel.
Returns: nil
In Object: DModelPanel
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DModelPanel.RunAnimation]DModelPanel.RunAnimation [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionShows a Kleiner model with a walk animation
Used onNewerClient.png
Code
model = vgui.Create( "DModelPanel" )
model:SetModel( "models/player/kleiner.mdl" )
 
function model:LayoutEntity( )
 
	self:RunAnimation()
 
end
 
// Refill them self
model:SetSize( 0, 0 )
model:SetCamPos( Vector( 0, 0, 0 ) )
model:SetLookAt( Vector( 0, 0, 0 ) )
model:SetFOV( 0 )
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox