DModelPanel.SetAnimSpeed

From GMod Wiki

Jump to: navigation, search
Function
Syntax DModelPanel.SetAnimSpeed( Integer AnimationSpeed )
Description:
Sets the speed on the model's animation. Multiples the animation rate
Returns: nil
In Object: DModelPanel
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DModelPanel.SetAnimSpeed]DModelPanel.SetAnimSpeed [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionExample on how to slow down the example.
Used onNewerClient.png
Code
 
local Main = vgui.Create("DFrame")
Main:SetSize(220,250)
Main:SetTitle("Menu")
 
local pModel = vgui.Create("DModelPanel", Main)
pModel:SetPos(10,40)
pModel:SetSize(200,200)
pModel:SetModel(LocalPlayer():GetModel())
pModel:SetAnimated(true)
pModel:SetAnimSpeed(0.1) --Slows down the animation.
 
OutputN/A

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox