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.

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: 20ms

Session 0
DB GetPage 3
Generate Html 1
SaveChanges 9
Render Body 0
Render Sidebar 6