CMoveData.GetSideSpeed

From GMod Wiki

Revision as of 15:48, 13 July 2010 by Fagballs (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax MoveData:GetSideSpeed( )
Description:
Returns the strafe speed of the player
Returns: Number
In Object: CMoveData
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=CMoveData.GetSideSpeed]CMoveData.GetSideSpeed [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

 
if ply:KeyDown( IN_MOVERIGHT ) then
 
  mv:SetSideSpeed( mv:GetSideSpeed() - 125 )
 
elseif ply:KeyDown( IN_MOVELEFT ) then
 
  mv:SetSideSpeed( mv:GetSideSpeed() + 125 )
 
end
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox