CMoveData.SetVelocity
From GMod Wiki
Revision as of 05:02, 30 October 2009 by Crazy Quebecer (Talk | contribs)
| 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 |