Garry's Mod Wiki

Garry's Mod Wiki

  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

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...