CMoveData.GetSideSpeed
From GMod Wiki
Function | |
Syntax | MoveData:GetSideSpeed( ) |
Description: | |
Returns the strafe speed of the player | |
Returns: | Number |
In Object: | CMoveData |
Realm: | |
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