Garry's Mod Wiki

Entity:GetSequenceVelocity

  Vector Entity:GetSequenceVelocity( number sequenceId, number cycle )

Just Added

This was just added in the latest version (2022.06.08). It might only be available on the Dev Branch right now.

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.