CMoveData.SetOrigin

From GMod Wiki

Jump to: navigation, search
Function
Syntax MoveData:SetOrigin( Vector Position )
Description:
Set the player's position
Returns: nil
In Object: Cmovedata
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=CMoveData.SetOrigin]CMoveData.SetOrigin [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionMake the player freeze at the origin of the map.
Used onNewerShared.png
Code
function GM:SetupMove( ply, movedata )
    movedata:SetOrigin( vector_origin )
end
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox