Garry's Mod Wiki

CMoveData:GetOrigin

  Vector CMoveData:GetOrigin()

Description

Gets the player's position.

Returns

1 Vector
The player's position.

Example

Print's the players position.

function GM:SetupMove( ply, movedata ) print( movedata:GetOrigin() ) end