Entity.ResetSequence

From GMod Wiki

Revision as of 01:36, 1 August 2011 by BlackOps (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Entity:ResetSequence( Integer sequence )
Description:
Sets the entity's model sequence. If the sequence is already playing, it will be reset and played from the beginning.
Returns: nil
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.ResetSequence]Entity.ResetSequence [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionSet the entity to play the "idle" sequence.
Used onNewerShared.png
Code
local sequence = self:LookupSequence("idle")
self:ResetSequence(sequence)
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox