Entity.SetCycle
From GMod Wiki
| Function | |
| Syntax | Entity:SetCycle( Integer frame ) |
| Description: | |
| Sets the frame the current sequence should play from. | |
| Returns: | nil |
| In Object: | Entity |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.SetCycle]Entity.SetCycle [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
| Description | Set the entity to play the "idle" sequence from frame 5. |
|---|---|
| Used on | |
| Code | self:SetSequence( self:LookupSequence( "idle" ) ) self:SetCycle( 5 ) |
| Output | N/A |