Player.GetMaxSpeed

From GMod Wiki

Revision as of 14:53, 13 September 2009 by UnrealomegaBot (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Player:GetMaxSpeed( )
Description:
Returns an Interger of how fast the player can move
Returns: Integer
In Object: Player
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.GetMaxSpeed]Player.GetMaxSpeed [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionSimple function to check how fast a player can move
Used onNewerClient.png
Code
 
function checkSpeed(ply)
//Print How fast you can travel.
ply:ChatPrint("You can currently travel at "..ply:GetMaxSpeed())
//End the Function
end
 
OutputYou can currently travel at <INT>


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox