Entity.SetCycle
From GMod Wiki
Revision as of 20:15, 13 April 2011 by [R2P] Obstsalat aka Kokosnuss (Talk | contribs)
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 |