CMoveData/SetOrigin

From Garry's Mod
Jump to: navigation, search
 CMoveData:SetOrigin( )

Contents

Description

Sets the players position.

Arguments

Vector pos

The position

Examples

Example

Make the player freeze at the origin of the map.

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


Personal tools
Navigation