Garry's Mod Wiki

Revision Difference

Entity:LookupSequence#551348

<function name="LookupSequence" parent="Entity" type="classfunc"> <description>Returns sequence ID from its name. See <page>Entity:GetSequenceName</page> for a function that does the opposite.</description> <realm>Shared</realm> <args> <arg name="name" type="string">Sequence name</arg> </args> <rets> <ret name="" type="number">Sequence ID for that name. This **will** differ for models with same sequence names. Will be -1 whether the sequence is invalid.</ret> <ret name="" type="number">Sequence ID for that name. This **will** differ for models with same sequence names. Will be -1 when the sequence is invalid.</ret> <ret name="" type="number">The sequence duration * 0 if the sequence is invalid</ret> </rets> </function>