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

Page Links


Special Pages


Wikis

?

Render Time: 39ms

DB GetPage 5
Generate Html 2
SaveChanges (1) 18
Render Body 0
Render Sidebar 11