Garry's Mod Wiki

Entity:GetGroundSpeedVelocity

  Vector Entity:GetGroundSpeedVelocity()

Description

Returns the entity's ground speed velocity, which is based on the entity's walk/run speed and/or the ground speed of their sequence ( Entity:GetSequenceGroundSpeed ). Will return an empty Vector if the entity isn't moving on the ground.

Returns

1 Vector
The ground speed velocity.