Revision Difference
DModelPanel:GetAnimSpeed#553408
<function name="GetAnimSpeed" parent="DModelPanel" type="panelfunc">
<ispanel>yes</ispanel>⤶
<description>Returns the animation speed of the panel entity, see <page>DModelPanel:SetAnimSpeed</page>.</description>
<realm>Client</realm>
<rets>
<ret name="" type="number">The animation speed.</ret>
</rets>
</function>
<example>
<description>Prints out the default animation speed.</description>
<code>
local mdl = vgui.Create("DModelPanel")
mdl:SetPos(20, 20)
mdl:SetSize(200, 200)
mdl:SetModel("models/props_junk/watermelon01.mdl")
print(mdl:GetAnimSpeed())
</code>
<output>0.5</output>
</example>