Garry's Mod Wiki

DModelPanel:GetAnimated

boolean DModelPanel:GetAnimated()

Description

Returns whether or not the panel entity should be animated when the default DModelPanel:LayoutEntity function is called.

Returns

1 boolean
True if the panel entity can be animated with Entity:SetSequence directly, false otherwise.

Example

Prints out the default boolean value for this function.

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

Page Links


Special Pages


Wikis

?

Render Time: 33ms

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