CMoveData.SetVelocity

From GMod Wiki

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



Examples

DescriptionMake the player shake to hell and back.
Used onNewerShared.png
Code
function GM:SetupMove( ply, movedata )
    movedata:SetVelocity( VectorRand() * 800 )
end
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox