From Garry's Mod
(Difference between revisions)
(Added missing argument)
|Line 5:||Line 5:|
Latest revision as of 17:48, 6 September 2019
Advances the cycle of an animated entity.
Animations that loop will automatically reset the cycle so you don't have to - ones that do not will stop animating once you reach the end of their sequence.
How many seconds to advance the cycle. Set to 0 to let the engine calculate this for you based on CurTime.
function PANEL:RunAnimation() self.Entity:FrameAdvance( (RealTime()-self.LastPaint) * self.m_fAnimSpeed ) end
Animates the entity