Entity.LookupSequence

From GMod Wiki

Revision as of 01:35, 1 August 2011 by BlackOps (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Entity:LookupSequence( String name )
Description:
Returns the index of the sequence matching the specified name in the entity's model.
Returns: Integer id, Float duration
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.LookupSequence]Entity.LookupSequence [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