Garry's Mod Wiki

CMoveData:GetVelocity

Vector CMoveData:GetVelocity()

Description

Gets the players velocity.

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

Issue Tracker: 3413

Returns

1 Vector
The players velocity

Example

Prints the player's velocity.

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

Page Links


Special Pages


Wikis

?

Render Time: 37ms

DB GetPage 2
Generate Html 6
SaveChanges (1) 10
Render Body 0
Render Sidebar 16