Garry's Mod Wiki

Entity:GetSequenceMovement

  boolean, Vector, Angle Entity:GetSequenceMovement( number sequenceId, number startCycle = 0, number endCyclnde = 1 )

Description

Returns the delta movement and angles of a sequence of the entity's model.

Arguments

1 number sequenceId
The sequence index. See Entity:LookupSequence.
2 number startCycle = 0
The sequence start cycle. 0 is the start of the animation, 1 is the end.
3 number endCyclnde = 1
The sequence end cycle. 0 is the start of the animation, 1 is the end. Values like 2, etc are allowed.

Returns

1 boolean
Whether the operation was successful
2 Vector
The delta vector of the animation, how much the model's origin point moved.
3 Angle
The delta angle of the animation.