Entity.SetCycle

From GMod Wiki

Jump to: navigation, search
Function
Syntax Entity:SetCycle( Integer frame )
Description:
Sets the frame the current sequence should play from.
Returns: nil
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.SetCycle]Entity.SetCycle [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionSet the entity to play the "idle" sequence from frame 5.
Used onNewerShared.png
Code
self:SetSequence( self:LookupSequence( "idle" ) )
self:SetCycle( 5 )
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox