Entity.GetCycle

From GMod Wiki

Jump to: navigation, search
Function
Syntax Entity:GetCycle( )
Description:
Returns the frame of the currently played sequence.
Returns: Integer
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.GetCycle]Entity.GetCycle [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionPrints the frame of the current sequence from our entity to console.
Used onNewerShared.png
Code
Msg(self:GetCycle())
OutputAn Integer, 5 for example.


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox