CMoveData.SetVelocity
From GMod Wiki
Function | |
Syntax | MoveData:SetVelocity( Vector Velocity ) |
Description: | |
Set the player's velocity | |
Returns: | nil |
In Object: | CMoveData |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=CMoveData.SetVelocity]CMoveData.SetVelocity [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Make the player shake to hell and back. |
---|---|
Used on | |
Code | function GM:SetupMove( ply, movedata ) movedata:SetVelocity( VectorRand() * 800 ) end |
Output | N/A |