Entity.SetPlaybackRate

From GMod Wiki

Revision as of 08:25, 11 October 2010 by Jcw87 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Entity:SetPlaybackRate( Float rate )
Description:
Set the rate at which the entity's animation is played, where 1.0 is normal speed.
Returns: nil
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.SetPlaybackRate]Entity.SetPlaybackRate [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionPlay the "idle" animation twice as fast as normal.
Used onNewerShared.png
Code
local sequence = self:LookupSequence("idle")
self:ResetSequence(sequence)
self:SetPlaybackRate(2.0)
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox