CMoveData.GetVelocity

From GMod Wiki

Revision as of 04:59, 30 October 2009 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax MoveData:GetVelocity( )
Description:
Get the player's velocity
Returns: Vector
In Object: CMoveData
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=CMoveData.GetVelocity]CMoveData.GetVelocity [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionPrints the player's velocity
Used onNewerShared.png
Code
function GM:Move( ply, movedata )
    print( movedata:GetVelocity() )
end
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox