Entity.LookupSequence
From GMod Wiki
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: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.LookupSequence]Entity.LookupSequence [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Description | Set the entity to play the "idle" sequence. |
---|---|
Used on | |
Code | local sequence = self:LookupSequence("idle") self:SetSequence(sequence) |
Output | N/A |
Additional Notes
- Sequences can be found in the Source SDK Model Viewer in the "Sequence" Tab. (NOTE: Make sure "View -> Show Activities" is unchecked.)