Entity.GetSequence

From GMod Wiki

Jump to: navigation, search
Function
Syntax Entity:GetSequence( )
Description:
Return the index of the model sequence that is currently active for the entity.
Returns: Integer
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.GetSequence]Entity.GetSequence [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionDo something if the entity isn't playing the "idle" sequence.
Used onNewerShared.png
Code
local sequence = self:LookupSequence("idle")
if self:GetSequence() != sequence then
  // ...
end
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox