Entity.GetSequence
From GMod Wiki
| Function | |
| Syntax | Entity:GetSequence( ) |
| Description: | |
| Return the index of the model sequence that is currently active for the entity. | |
| Returns: | Integer |
| In Object: | Entity |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.GetSequence]Entity.GetSequence [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
| Description | Do something if the entity isn't playing the "idle" sequence. |
|---|---|
| Used on | |
| Code | local sequence = self:LookupSequence("idle") if self:GetSequence() != sequence then // ... end |
| Output | N/A |