CMoveData.SetMaxClientSpeed

From GMod Wiki

Revision as of 07:30, 17 May 2011 by KING OF SPACE (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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