CMoveData.GetSideSpeed

From GMod Wiki

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