Garry's Mod Wiki

CLuaLocomotion:GetGroundMotionVector

  Vector CLuaLocomotion:GetGroundMotionVector()

Description

Return unit vector in XY plane describing our direction of motion - even if we are currently not moving

Returns

1 Vector
A vector representing the X and Y movement