CMoveData.SetMaxSpeed

From GMod Wiki

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



Examples

DescriptionSets the players MaxSpeed
Used onNewerShared.png
Code
 
hook.Add("SetupMove","SetMaxSpeed", function(ply,movedata)
      if movedata:IsPlayer() then
        movedata:SetMaxSpeed(200)
      end
end)
 
OutputNone


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox