Garry's Mod Wiki

Entity:GetSequenceVelocity

  Vector Entity:GetSequenceVelocity( number sequenceId, number cycle )

Description

Returns an entity's sequence velocity at given animation frame.

Arguments

1 number sequenceId
The sequence index.
2 number cycle
The point in animation, from 0 to 1.

Returns

1 Vector
Velocity of the sequence at given point in the animation.