Garry's Mod Wiki

DModelPanel:GetAnimSpeed

number DModelPanel:GetAnimSpeed()

Description

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

Returns

1 number
The animation speed.

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

Page Links


Special Pages


Wikis

?

Render Time: 31ms

DB GetPage 3
Generate Html 4
SaveChanges (1) 9
Render Body 0
Render Sidebar 12