CMoveData/GetVelocity

From Garry's Mod
Jump to: navigation, search
 CMoveData:GetVelocity( )

Contents

Description

Gets the players velocity.

BUG

This will return Vector(0,0,0) sometimes when walking on props.

Issue Tracker: #3413

Returns

Vector

The players velocity

Examples

Example

Prints the player's velocity.

function GM:Move( ply, movedata )
    print( movedata:GetVelocity() )
end


Personal tools
Navigation