CMoveData.SetMaxSpeed
From GMod Wiki
Function | |
Syntax | MoveData:SetMaxSpeed( Float Speed ) |
Description: | |
Sets the Max speed of the player. | |
Returns: | nil |
In Object: | Cmovedata |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=CMoveData.SetMaxSpeed]CMoveData.SetMaxSpeed [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Sets the players MaxSpeed |
---|---|
Used on | |
Code | hook.Add("SetupMove","SetMaxSpeed", function(ply,movedata) if movedata:IsPlayer() then movedata:SetMaxSpeed(200) end end) |
Output | None |