Entity.SetCycle

From GMod Wiki

Revision as of 20:15, 13 April 2011 by [R2P] Obstsalat aka Kokosnuss (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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