CMoveData.SetMaxClientSpeed

From GMod Wiki

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



Examples

DescriptionSets the Max speed of the client
Used onNewerShared.png
Code
 
hook.Add("SetupMove","SetMaxClientSpeed", function(ply,movedata)
      if movedata:IsPlayer() then
        movedata:SetMaxClientSpeed(200)
      end
end)
 
OutputNone


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox