Entity.SetSequence

From GMod Wiki

Jump to: navigation, search
Function
Syntax Entity:SetSequence( Integer sequence )
Description:
Sets the entity's model sequence. If the specified sequence is already active, the animation will not be restarted.
Returns: nil
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.SetSequence]Entity.SetSequence [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

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


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox