Garry's Mod Wiki

CMoveData:SetOrigin

  CMoveData:SetOrigin( Vector pos )

Description

Sets the players position.

Arguments

1 Vector pos
The position

Example

Make the player freeze at the origin of the map.

function GM:SetupMove( ply, movedata ) movedata:SetOrigin( vector_origin ) end