DModelPanel/GetAnimSpeed

From Garry's Mod
Jump to: navigation, search
 DModelPanel:GetAnimSpeed( )

Contents

DescriptionPanelFunc

Returns the animation speed of the panel entity, see DModelPanel:SetAnimSpeed.

Returns

number

The animation speed.

Examples

Example

Prints out the default animation speed.

local mdl = vgui.Create("DModelPanel")
mdl:SetPos(20, 20)
mdl:SetSize(200, 200)
mdl:SetModel("models/props_junk/watermelon01.mdl")

print(mdl:GetAnimSpeed())

Output:

0.5
Personal tools
Navigation