CMoveData.GetMaxClientSpeed

From GMod Wiki

Jump to: navigation, search
Function
Syntax MoveData:GetMaxClientSpeed( )
Description:
Returns the Clients Max Speed
Returns: Number
In Object: Cmovedata
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=CMoveData.GetMaxClientSpeed]CMoveData.GetMaxClientSpeed [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionGets the clients max speed.
Used onNewerShared.png
Code
 
hook.Add("SetupMove","Canihazcheezburger", function(ply,movedata)
      if (movedata:IsPlayer() && movedata:KeyDown( IN_FORWARD )) then
          print(movedata:GetMaxClientSpeed())
      end
end)
 
OutputClients Max Speed


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox