Garry's Mod Wiki

CMoveData:SetOrigin

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

Special Pages


Wikis

?

Render Time: 41ms

DB GetPage 23
Generate Html 2
SaveChanges (1) 6
Render Body 0
Render Sidebar 8