Garry's Mod Wiki

Entity:LookupSequence

  number, number Entity:LookupSequence( string name )

Description

Returns sequence ID from its name. See Entity:GetSequenceName for a function that does the opposite.

Arguments

1 string name
Sequence name

Returns

1 number
Sequence ID for that name. This will differ for models with same sequence names. Will be -1 whether the sequence is invalid.
2 number
The sequence duration

  • 0 if the sequence is invalid